Skip to content

Commit 21a5fb2

Browse files
committed
Disable usage message on errors
Let's reduce the visual noise by disabling the usage message on error. Signed-off-by: German Maglione <[email protected]>
1 parent f731541 commit 21a5fb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var RootCmd = &cobra.Command{
1515
Short: "Run bootable containers as a virtual machine",
1616
Long: "Run bootable containers as a virtual machine",
1717
PersistentPreRunE: preExec,
18+
SilenceUsage: true,
1819
}
1920

2021
var rootLogLevel string

0 commit comments

Comments
 (0)