mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00: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…
Reference in a new issue