git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow gnu-style long options
[openafs.git]
/
src
/
cmd
/
cmd.c
diff --git
a/src/cmd/cmd.c
b/src/cmd/cmd.c
index
9aae393
..
66b4ef4
100644
(file)
--- a/
src/cmd/cmd.c
+++ b/
src/cmd/cmd.c
@@
-76,6
+76,11
@@
FindType(register struct cmd_syndesc *as, register char *aname)
int ambig;
int best;
+ /* Allow --long-style options. */
+ if (aname[0] == '-' && aname[1] == '-' && aname[2] && aname[3]) {
+ aname++;
+ }
+
cmdlen = strlen(aname);
ambig = 0;
best = -1;