Files
fish-shell/doc_src
Isaac Oscar Gariano 007edac145 Make argparse reject supplying a validator for boolean flags
Specifically, this commit simply makes argparse issue an error if you use the !
syntax to define a validation script on an option that does not take any
arguments. For example, "argparse foo!exit -- --foo" is now an error. This was
previously accepted, despite that fact that the code after ! would never be
executed (the ! code is only executed when an option is given a value).

Alternatively, ! validation scripts could be made to execute even when no value
was provided, but this break existing code that uses them with flags that take
optional values.
2025-08-30 01:55:56 +10:00
..
2025-08-10 07:49:10 -04:00
2022-09-17 21:31:06 +08:00
2025-04-11 15:11:22 +02:00
2025-04-11 15:11:22 +02:00
2025-04-12 12:09:08 +02:00