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.
This commit is contained in:
Nick Mathewson
2020-12-07 16:40:19 -05:00
committed by George Kadianakis
parent b50fcdc2e7
commit 558aaf1c32
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
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.