ask-password: once we hit the message argument, don't process switches anymore

Let's not mangle the message part unnecessarily, that'd be confusing and
unexpected.
This commit is contained in:
Lennart Poettering 2021-06-03 11:08:20 +02:00
parent a51168481f
commit 4b1c842d95

View file

@ -104,7 +104,7 @@ static int parse_argv(int argc, char *argv[]) {
/* Note the asymmetry: the long option --echo= allows an optional argument, the short option does
* not. */
while ((c = getopt_long(argc, argv, "he", options, NULL)) >= 0)
while ((c = getopt_long(argc, argv, "+he", options, NULL)) >= 0)
switch (c) {