mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-09-28 17:39:29 +02:00
(main): Fix command-line parsing to allow for more than one argument.
(Logical change 1.71)
This commit is contained in:
parent
3a27d1661c
commit
e6ddf4c3e0
1 changed files with 12 additions and 11 deletions
|
@ -137,6 +137,7 @@ main (int argc, char **argv)
|
||||||
argv = args;
|
argv = args;
|
||||||
}
|
}
|
||||||
else if (argc > 1)
|
else if (argc > 1)
|
||||||
|
while (argv[optind][0] == '-')
|
||||||
{
|
{
|
||||||
if (strcmp (argv[optind], "-v") == 0)
|
if (strcmp (argv[optind], "-v") == 0)
|
||||||
++optind, verbose = 1;
|
++optind, verbose = 1;
|
||||||
|
|
Loading…
Reference in a new issue