diff options
author | E5ten <e5ten.arch@gmail.com> | 2019-12-04 22:06:40 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-12-04 22:24:16 -0600 |
commit | 31319d35e6c5134a84bfea7d5d3b9c89339da0b6 (patch) | |
tree | a3de8cfb104ec86087bac37a71c3613aafd25e0b | |
parent | f7ddbc8a4ce3f6a7c48954c204b9b51c3a2a7e8a (diff) | |
download | toybox-31319d35e6c5134a84bfea7d5d3b9c89339da0b6.tar.gz |
Fix getopt optstring
Move longopts after their corresponding shortopts instead of before
-rw-r--r-- | toys/pending/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/getopt.c b/toys/pending/getopt.c index 7780cb6e..88307153 100644 --- a/toys/pending/getopt.c +++ b/toys/pending/getopt.c @@ -2,7 +2,7 @@ * * Copyright 2019 The Android Open Source Project -USE_GETOPT(NEWTOY(getopt, "^(alternative)a(name)n:(options)o:(long)(longoptions)l*Tu", TOYFLAG_USR|TOYFLAG_BIN)) +USE_GETOPT(NEWTOY(getopt, "^a(alternative)n:(name)o:(options)l*(long)(longoptions)Tu", TOYFLAG_USR|TOYFLAG_BIN)) config GETOPT bool "getopt" |