11 Commits

Author SHA1 Message Date
serge
5c03bb75f3 Added functions check/2, parse_and_check/2, and format_error/2 2013-07-18 19:14:26 -04:00
Juan Jose Comellas
8fd9eae57d Add argument with default float value to example 2013-03-28 16:11:01 -03:00
Juan Jose Comellas
860de106b7 Modify example to add a very long suffix to the command line 2013-01-25 15:29:54 -03:00
Juan Jose Comellas
eb4a5c81fb Add example with very long help text to show wrapped usage output 2012-11-19 12:27:29 -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
Juan Jose Comellas
b2e8bcd291 Modify module to make it GNU getopt compliant.
Add support for short options with embedded arguments (e.g. -j2).
Add support for implicit boolean options (e.g. -q -> {quiet, true}).
Add support for option terminator ("--").
2010-01-06 16:39:48 -03:00
Juan Jose Comellas
5ce0e76f87 Added support for embedded short options (e.g. -j2) and option
terminator (i.e. "--").
2010-01-05 19:21:34 -03:00
Juan Jose Comellas
400a7b7cf9 Add support for options without a '-' prefix as required by rebar.
Boolean options without an argument are now considered true.
2009-12-30 20:12:54 -03:00
Juan Jose Comellas
0be58dc525 Avoid hardcoding escript name. 2009-12-17 15:34:48 -03:00
Juan Jose Comellas
4b03285d9e Dropped record syntax for the option specifications to simplify use from escripts. 2009-11-16 19:20:32 -03:00