tor/changes/argument_parse
Nick Mathewson 558aaf1c32 Command-line arguments: be better at detecting absent optional args.
Previously, "--list-fingerprint --quiet" was an error.  Now, the
handler for optional arguments to "--list-fingerprint" can tell that
"--quiet" is a flag, not an argument.

This only affects flags that take an _optional_ argument, so you can
still put your torrc file in a location starting with "-".

Closes #40223.
2020-12-08 16:53:57 +02:00

6 lines
308 B
Plaintext

o Minor features (command-line interface):
- When parsing command-line flags that take an optional argument,
treat the argument as absent if it would start with a '-' character.
Arguments in that form are not intelligible for any of our
optional-argument flags. Closes ticket 40223.