Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version subcommand. Do not print usage if run subcommand fails. #475

Merged
merged 2 commits into from May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/godog/internal/cmd_run.go
Expand Up @@ -32,7 +32,8 @@ buildable go source.`,
feature (*.feature)
scenario at specific line (*.feature:10)
If no feature arguments are supplied, godog will use "features/" by default.`,
RunE: runCmdRunFunc,
RunE: runCmdRunFunc,
SilenceUsage: true,
}

flags.BindRunCmdFlags("", runCmd.Flags(), &opts)
Expand Down
1 change: 1 addition & 0 deletions cmd/godog/internal/cmd_version.go
Expand Up @@ -14,6 +14,7 @@ func CreateVersionCmd() cobra.Command {
versionCmd := cobra.Command{
Use: "version",
Short: "Show current version",
Run: versionCmdRunFunc,
Version: godog.Version,
}

Expand Down