diff options
author | Rob Landley <rob@landley.net> | 2012-03-12 00:25:40 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-03-12 00:25:40 -0500 |
commit | 2c48247a01a19c709f693d649d8158bccb5fbf70 (patch) | |
tree | 53297abe89d56a745d1d9a9ddec161fc1adbae24 /lib/args.c | |
parent | 9f4c1fd2de1b525b7638a79a8294f8d5b865bcc5 (diff) | |
download | toybox-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |