summaryrefslogtreecommitdiff
path: root/lib/args.c
AgeCommit message (Expand)AuthorFilesLines
2015-07-10Move comment about TOYBOX_DEBUG to start of file so it's more obvious.Rob Landley1-4/+6
2015-01-18Remove trailing whitespace.Rob Landley1-1/+0
2015-01-01Debris from flag handling rewrite: don't allow -^A to actually trigger.Rob Landley1-0/+1
2014-08-15Fix bug reported by Ashwini Sharma: [-abc] syntax to switch off a command forgetRob Landley1-2/+5
2013-09-21Tweak args (yank old + that never worked, rename | to +), and add uname -o as...Rob Landley1-11/+5
2013-09-21Fluff out option parsing documentation, add another DEBUG test.Rob Landley1-40/+58
2013-09-09Fix [-group] argument dropping.Rob Landley1-2/+2
2013-09-06Make [-abc] exclude logic clear argument slots when disabling options.Rob Landley1-1/+8
2013-09-01Improve --longopt parsing: general bugfixes, better error reporting, new ; op...Rob Landley1-23/+33
2013-07-31Cleanup renice and implement '|' (required option) in argument parsing.Rob Landley1-2/+15
2013-06-22Option type @ counts number of occurrences, it doesn't take an argument.Rob Landley1-2/+4
2013-04-30Fix bare longopts to set unique optflag bits.Rob Landley1-1/+4
2013-04-14Move guts of help command into show_help() in lib/help.c, with config TOYBOX_...Rob Landley1-2/+2
2013-04-06Fix argument parsing so -- doesn't include itself in output.Rob Landley1-1/+1
2012-12-29Ashwini Sharma pointed out that my previous tweak to [!abc] groups still didn...Rob Landley1-2/+4
2012-12-27Fix option grouping.Rob Landley1-2/+3
2012-11-25Fix typo.Rob Landley1-1/+1
2012-11-19Teach option parsing about [groups] of related options.Rob Landley1-53/+84
2012-11-13Reindent to two spaces per level. Remove vi: directives that haven't worked r...Rob Landley1-321/+312
2012-11-02Use stridx.Rob Landley1-11/+11
2012-07-15Genericize llist code a bit: rename llist_free() to llist_traverse(), and no ...Rob Landley1-0/+5
2012-03-12Redo tail to use optargs and optionally support lseek. Add support to optargs...Rob Landley1-2/+2
2012-02-28Add "-" type to optargs and teach tail.c to use it. Tighten up help text, us...Rob Landley1-1/+3
2012-02-26Teach lib/args.c that " " this option must take a _separate_ argument, so "ki...Rob Landley1-5/+9
2012-02-18Nathan McSween convinced me compilers that inline memset() can optimize the b...Rob Landley1-1/+1
2012-02-03Removing unecessary allocation.Luis Felipe Strano Moraes1-2/+1
2012-01-29Add <>= to lib/args.c, with documentation.Rob Landley1-22/+63
2011-11-30Split out parse_optflaglist(), and move local variables to optflagstate.Rob Landley1-122/+135
2011-11-28Fix "tar cvjfC file dir", make @ not eat an argument, add debug check for (as...Rob Landley1-14/+12
2008-07-03Teach option parsing logic that ^ means stop parsing after this option.Rob Landley1-10/+14
2008-06-26Option parsing: stopearly is now a ^ prefix (not +), and an option string withRob Landley1-2/+3
2008-06-16Assemble '*' repeated argument list in order. Also implement '@' counter.Rob Landley1-7/+6
2008-05-17Fix command line option parsing so "echo -xen" actually prints "-xen". AddRob Landley1-4/+16
2008-05-04Fluffier error message.Rob Landley1-3/+6
2008-03-24Enabling debugging should not change behavior. Oops.Rob Landley1-2/+2
2008-02-18Add enable/disable/exclude logic, update docs.Rob Landley1-97/+102
2008-02-12Add toys.optc, an argv-style count for toys.optargs.Rob Landley1-8/+6
2008-01-20Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()Rob Landley1-1/+1
2007-11-27Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.Rob Landley1-1/+1
2007-11-15Remove trailing whitespace (thanks to Charlie Shepherd), and a couple commentRob Landley1-3/+3
2007-10-11Promote help to global config option, teach error_exit() to output usage mess...Rob Landley1-0/+2
2007-06-18Fix "Need 1 arguments".Rob Landley1-2/+4
2007-02-16Add atolx() which understands extensions for kilobytes and megabytes and such.Rob Landley1-1/+1
2007-01-31Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.Rob Landley1-1/+2
2007-01-25Update args.c to implement numeric arguments.Rob Landley1-20/+29
2007-01-07xopen() wants 2 arguments unless you're creating a file, in which case youRob Landley1-0/+32
2006-11-25More work on option parsing. "df -t tmpfs" actually seems to work now.Rob Landley1-9/+11
2006-11-24Fix a half-dozen bugs in argument parsing. More seems to work than not now.Rob Landley1-45/+42
2006-11-19Allocate a more sane amount of memory.Rob Landley1-2/+8
2006-11-19Add one if() that has lots of whitespace fallout.Rob Landley1-65/+67