Skip to content

Commit

Permalink
Fix: Stop showing usage when there's an execution error
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
buddhike committed Jan 23, 2018
1 parent defd01e commit 2c26021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependency tracking and metadata management for monorepos stored in git.
See help for individual commands for more information.
`,
SilenceUsage: true,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
if cmd.Use != "version" && in == "" {
cwd, err := os.Getwd()
Expand Down

0 comments on commit 2c26021

Please sign in to comment.