13 Commits

Author SHA1 Message Date
Simon Skorokhodov
8b328c666b Fix tests for Erlang < 20 2021-01-18 10:47:26 +01:00
Simon Skorokhodov
fe997f2f6f extend format_error/2 to handle missing_option_arg 2018-03-17 18:46:13 +01:00
Simon Skorokhodov
b3e4a77172 Add tests for utf8_binary type 2018-03-06 21:56:53 +01:00
soranoba
f88f58a6b2 FIX format_error : supporting options without the hyphen 2016-03-15 01:05:14 +09:00
Juan Jose Comellas
a3e95c3432 Add tests for the different arguments that format_error/2 can receive 2013-07-22 12:00:43 -03:00
Juan Jose Comellas
078d003a93 Rearrange format_error/2 arguments to match existing conventions 2013-07-19 02:00:36 -03:00
serge
0ff0a00b78 Added test cases for new functions 2013-07-18 20:03:50 -04:00
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