Commit d36ff8c
committed
fix: handle empty args list in CommandParser for optional-only commands
fletx doctor and other commands with only optional arguments were
rejected by missing_args_message check treating [] as 'no args'.
Fix skips the error when no positional args are required (nargs in ?,*).1 parent 2f23748 commit d36ff8c
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
327 | | - | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
0 commit comments