From 2c48247a01a19c709f693d649d8158bccb5fbf70 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 12 Mar 2012 00:25:40 -0500 Subject: 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. --- lib/args.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/args.c') 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; -- cgit v1.2.3