Rob Landley
|
42ce6272f5
When args.c is just enforcing max/min argument count with no options, imply ?
|
2 years ago |
Rob Landley
|
80f82b2b5e
Check for --help before "Not root".
|
2 years ago |
Rob Landley
|
368ee96fb1
Samanta Navarro pointed out leftover 32 bit flag limitation in argument groups.
|
2 years ago |
Rob Landley
|
29e7ed94a1
Second attempt at making --help work with alias ls="ls --color"
|
3 years ago |
Rob Landley
|
664c417af5
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.
|
3 years ago |
Rob Landley
|
e7c86f7d79
Fix "date -I" segfault and teach lib/args.c that "I(opt):;" short opt with
|
3 years ago |
Rob Landley
|
52bbc1e0a4
Allow 0 prefix to optstr to include argv[0] in optargs[0].
|
3 years ago |
Rob Landley
|
ef67aedfe6
Fix 32 bit option parsing for long long optflag values.
|
4 years ago |
Elliott Hughes
|
2eefbe4107
lib/args.c: add quotes.
|
5 years ago |
Rob Landley
|
3e374556fe
Comment tweak.
|
5 years ago |
Rob Landley
|
677cd8cea2
Add TOYFLAG_ARGFAIL() to allow argument parsing failures to exit with value.
|
5 years ago |
Rob Landley
|
831266c068
Teach the argument plumbing how to do -@ for mkfs.vfat
|
5 years ago |
Rob Landley
|
c1a22bbca7
Only set FLAGS_NODASH when arguments didn't have a dash.
|
5 years ago |
Rob Landley
|
07a3b91920
Add % to lib/args.c (long time in milliseconds), add xmillitime(), redo
|
5 years ago |
Elliott Hughes
|
dca9fcccbc
Fix last uninitialized warning.
|
6 years ago |
Rob Landley
|
9d84dc3564
Add a way for commands to distinguish "ps -ax" from "ps ax".
|
6 years ago |
Rob Landley
|
ab33097058
Have help_exit() give a brief "See %s --help" message instead of the
|
7 years ago |
Rob Landley
|
d3267c60ee
Now that just about everything has --help, don't output help for argument errors
|
7 years ago |
Rob Landley
|
4d4ca28aca
An option can't exclude itself, so "abc[-ab][!abc]" with "command -a -b"
|
7 years ago |
Rob Landley
|
0ed17f1276
Now that we're using the adjusted option string, need to skip placeholders in [groups].
|
8 years ago |
Rob Landley
|
aaecbbac2f
Expand toys.optargs to 64 bits so people adding more options to ls don't run out.
|
8 years ago |
Rob Landley
|
e5354ca12a
Replace toys.exithelp with help_exit() in lib.
|
8 years ago |
Rob Landley
|
1e7b49e259
Move comment about TOYBOX_DEBUG to start of file so it's more obvious.
|
9 years ago |
Rob Landley
|
2c1cf4a027
Remove trailing whitespace.
|
9 years ago |
Rob Landley
|
cf2516ab4b
Debris from flag handling rewrite: don't allow -^A to actually trigger.
|
9 years ago |
Rob Landley
|
845c8da42a
Fix bug reported by Ashwini Sharma: [-abc] syntax to switch off a command forget
|
10 years ago |
Rob Landley
|
c705b95cef
Tweak args (yank old + that never worked, rename | to +), and add uname -o as a synonym for -s.
|
10 years ago |
Rob Landley
|
dc6db1a81a
Fluff out option parsing documentation, add another DEBUG test.
|
10 years ago |
Rob Landley
|
9d4cd46b82
Fix [-group] argument dropping.
|
10 years ago |
Rob Landley
|
c8a49971cb
Make [-abc] exclude logic clear argument slots when disabling options.
|
10 years ago |