Commit dab63e6
committed
fix(cli): show valid approval policy values in --ask-for-approval help
Fixes bounty issue #1424
The --ask-for-approval flag now displays valid options (untrusted, on-failure,
on-request, never) in the help text using clap's value_parser attribute.
Invalid values are also rejected with a clear error message.
Also fixes formatting issues in the file.1 parent 771ba8f commit dab63e6
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| |||
0 commit comments