Skip to content

Commit

Permalink
bblfshctl: fix install commands doc and error description
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <denys@sourced.tech>
  • Loading branch information
Denys Smirnov authored and dennwc committed Mar 13, 2018
1 parent 5f8eb12 commit c528245
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/bblfshctl/cmd/driver_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c528245

Please sign in to comment.