From c528245c859923eaef89c4d29e648639052392b4 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Tue, 13 Mar 2018 16:18:49 +0100 Subject: [PATCH] bblfshctl: fix install commands doc and error description Signed-off-by: Denys Smirnov --- cli/bblfshctl/cmd/driver_install.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/bblfshctl/cmd/driver_install.go b/cli/bblfshctl/cmd/driver_install.go index 6e0a66a..126866a 100644 --- a/cli/bblfshctl/cmd/driver_install.go +++ b/cli/bblfshctl/cmd/driver_install.go @@ -84,8 +84,8 @@ const ( DriverInstallCommandHelp = DriverInstallCommandDescription + "\n\n" + "Using `--all` all the official bblfsh driver are install in the \n" + "daemon. Using `--recommended` will only install the recommended, \n" + - "more developed. Using `--language` and `--image` arguments one single driver \n" + - "can be installed or updated.\n\n" + + "more developed. Using `language` and `image` positional arguments \n" + + "one single driver can be installed or updated.\n\n" + "Image reference format should be `[transport]name[:tag]`.\n" + "Defaults are 'docker://' for transport and 'latest' for tag." ) @@ -133,7 +133,7 @@ func (c *DriverInstallCommand) Execute(args []string) error { func (c *DriverInstallCommand) Validate() error { if !c.All && !c.Recommended && (c.Args.Language == "" || c.Args.ImageReference == "") { - return fmt.Errorf("error --language and --image are mandatory") + return fmt.Errorf("error `language` and `image` positional arguments are mandatory") } if c.All && c.Recommended {