Skip to content

Commit

Permalink
Silence usage on errors.
Browse files Browse the repository at this point in the history
Also remove redundant print of errorrs; cobra already does this.

Fixes #1
  • Loading branch information
Diwaker Gupta committed Mar 16, 2016
1 parent e869e9c commit 3d7772d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ var RootCmd = &cobra.Command{
Short: "A command line tool for Dropbox users and team admins",
Long: `Use dbxcli to quickly interact with your Dropbox, upload/download files,
manage your team and more. It is easy, scriptable and works on all platforms!`,
SilenceUsage: true,
PersistentPreRunE: initDbx,
}

// Execute adds all child commands to the root command sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(-1)
}
}
Expand Down

0 comments on commit 3d7772d

Please sign in to comment.