Fix version subcommand. Do not print usage if run subcommand fails. (#475)
* Fix version subcommand. Do not print usage if run subcommand fails. * Remove newline to clean up PR diff
Этот коммит содержится в:
родитель
5793a95e1c
коммит
d52a4d3f4d
2 изменённых файлов: 3 добавлений и 1 удалений
|
@ -33,6 +33,7 @@ buildable go source.`,
|
|||
scenario at specific line (*.feature:10)
|
||||
If no feature arguments are supplied, godog will use "features/" by default.`,
|
||||
RunE: runCmdRunFunc,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
flags.BindRunCmdFlags("", runCmd.Flags(), &opts)
|
||||
|
|
|
@ -14,6 +14,7 @@ func CreateVersionCmd() cobra.Command {
|
|||
versionCmd := cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Show current version",
|
||||
Run: versionCmdRunFunc,
|
||||
Version: godog.Version,
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче