Skip to content

Commit d0a44dd

Browse files
authored
CLOUDP-61709: Disable usage on error (#141)
1 parent 342a59b commit d0a44dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ var (
3333
Use: config.ToolName,
3434
Short: "CLI tool to manage your MongoDB Cloud",
3535
Long: fmt.Sprintf("Use %s command help for information on a specific command", config.ToolName),
36+
Example: `
37+
Display the help menu for the config command
38+
$ mongocli config --help`,
39+
SilenceUsage: true,
3640
}
3741
)
3842

0 commit comments

Comments
 (0)