[LIB]: Make with_executable_option handle "--executable" and "-?e?"
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
parent
04b27f7012
commit
b8eb5eb214
|
@ -2723,7 +2723,9 @@ out:
|
|||
static int with_executable_option(int argc, char *argv[])
|
||||
{
|
||||
while (--argc != 0)
|
||||
if (strcmp(argv[argc], "-e") == 0)
|
||||
if (strcmp(argv[argc], "--executable") == 0 ||
|
||||
(argv[argc][0] == '-' && argv[argc][1] != '-' &&
|
||||
strchr(argv[argc] + 1, 'e') != NULL))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue