Commit 8bb1148
committed
refactor(cli): use optionalArg("id") for team get positional validator
cobra.MaximumNArgs(1) was the only direct cobra-validator use in the cli
package. The optionalArg helper is the project idiom for an optional
positional that has a flag alternative (its doc comment describes exactly
this case), and it yields the consistent "expects at most one id" error
instead of cobra's default terse message.1 parent 58e8230 commit 8bb1148
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments