You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PreRunE: func(cmd*cobra.Command, args []string) error {
ifa!=""&&b!="" {
returnfmt.Errorf("--a and --b are mutually exclusive, can not be set at the same time")
}
ifa==""||b=="" {
returnfmt.Errorf("one of the --a or --b are required")
}
returnnil
},
The text was updated successfully, but these errors were encountered:
Required case:
We can not set them both at the same time, but one of the
-a
or-b
is required. (See: #1358) We may need something like:Optional case:
i.e.:
Should error out, i.e.:
Current workaround:
The text was updated successfully, but these errors were encountered: