mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
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:
parent
a51168481f
commit
4b1c842d95
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user