6 Commits

Author SHA1 Message Date
Juan Jose Comellas
f55ef18bab Expose getopt:tokenize/1 and command-line literals 2012-07-20 11:00:25 -03:00
Juan Jose Comellas
1a01b82531 Fix #15: add command-line tokenizer with support for quoted arguments
Replace string:tokens/2 with a custom command-line tokenizer that supports
single and double-quoted arguments (with embedded whitespace) and
expansion of environment variables using either the Unix ($VAR; ${VAR}) or
Windows (%VAR%) formats. This tokenizer is only used when the command line
is parsed as a single string.
2012-07-20 07:42:23 -03:00
Juan Jose Comellas
e1f239785b Make multiple repetitions with implicit arguments more 'intuitive' 2012-01-29 12:13:36 -03:00
Juan Jose Comellas
29b5665479 Add support for duplicated integer options and for negative integer/float arguments 2012-01-24 15:38:59 -03:00
Juan Jose Comellas
9283bc0697 Add support for repetitions of options with integer arguments
This commit adds support for a type of command-line options that are
commonly used by many GNU tools. Now with this modification if you
have an option named 'verbose' with an integer argument and you enter
"-vvv" as in the command line you'll get {verbose, 3} as a result.
2012-01-17 00:33:40 -03:00
Eric Merritt
ba7ae64d2a Moved sub directories on source to top level
This allows for normal inclusion in OTP releases.
2010-08-12 09:47:49 +08:00