aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-03-12 00:25:40 -0500
committerRob Landley <rob@landley.net>2012-03-12 00:25:40 -0500
commit2c48247a01a19c709f693d649d8158bccb5fbf70 (patch)
tree53297abe89d56a745d1d9a9ddec161fc1adbae24 /lib/args.c
parent9f4c1fd2de1b525b7638a79a8294f8d5b865bcc5 (diff)
downloadtoybox-2c48247a01a19c709f693d649d8158bccb5fbf70.tar.gz
Redo tail to use optargs and optionally support lseek. Add support to optargs and llist.c, plus add a test suite entry. Still no -f support though.
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/args.c b/lib/args.c
index 918119c6..f4ceba1e 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -36,7 +36,7 @@
// [yz] needs at least one of y or z. TODO
// at the beginning:
// ^ stop at first nonoption argument
-// <0 die if less than leftover arguments (default 0)
+// <0 die if less than # leftover arguments (default 0)
// >9 die if > # leftover arguments (default MAX_INT)
// ? Allow unknown arguments (pass them through to command).
// & first argument has imaginary dash (ala tar/ps)
@@ -241,7 +241,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
// If this is the start of a new option that wasn't a longopt,
- } else if (strchr(":*#@.", *options)) {
+ } else if (strchr(":*#@.-", *options)) {
if (CFG_TOYBOX_DEBUG && new->type)
error_exit("multiple types %c:%c%c", new->c, new->type, *options);
new->type = *options;