dirname: support --
POSIX-2017 clarifies that -- and normal option parsing must be supported. See EXAMPLES in basename(1p) Signed-off-by: Mattias Andrée <maandree@kth.se>
This commit is contained in:
parent
1d885159f2
commit
084b46ac51
@ -13,7 +13,10 @@ usage(void)
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
argv0 = *argv, argv0 ? (argc--, argv++) : (void *)0;
|
||||
ARGBEGIN {
|
||||
default:
|
||||
usage();
|
||||
} ARGEND
|
||||
|
||||
if (argc != 1)
|
||||
usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user