Skip to content

Commit f967107

Browse files
committed
Made --quiet and --verbose mutually exclusive
1 parent 48a6ad3 commit f967107

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: internal/cli/compile/compile.go

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func NewCommand(srv rpc.ArduinoCoreServiceServer, settings *rpc.Configuration) *
117117
i18n.Tr(`Optional, can be: %s. Used to tell gcc which warning level to use (-W flag).`, "none, default, more, all"))
118118
compileCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, i18n.Tr("Optional, turns on verbose mode."))
119119
compileCommand.Flags().BoolVarP(&quiet, "quiet", "q", false, i18n.Tr("Optional, suppresses almost every output."))
120+
compileCommand.MarkFlagsMutuallyExclusive("quiet", "verbose")
120121
compileCommand.Flags().BoolVarP(&uploadAfterCompile, "upload", "u", false, i18n.Tr("Upload the binary after the compilation."))
121122
portArgs.AddToCommand(compileCommand, srv)
122123
compileCommand.Flags().BoolVarP(&verify, "verify", "t", false, i18n.Tr("Verify uploaded binary after the upload."))

0 commit comments

Comments
 (0)