41 Commits

Author SHA1 Message Date
Juan Jose Comellas
ffdeaaa2c1 Merge branch 'master' of https://github.com/ericbmerritt/getopt into ericbmerritt-master 2011-02-02 10:43:38 -03:00
Eric Merritt
df9647304f version bump to 0.3.1 2011-01-16 15:28:13 -06:00
Juan Jose Comellas
1e75708497 Merge branch 'master' of https://github.com/ericbmerritt/getopt into ericbmerritt-master
Conflicts:
	src/getopt.erl
2011-01-15 12:01:04 -03:00
Eric Merritt
0fda71a930 export declared types from getopt.erl
This patch exports the externally useful declared types so clients
may make use of them in thier codebase.
2011-01-12 18:13:25 -06:00
Tuncer Ayaz
f82e2989b1 Apply Tidier suggestions 2011-01-09 14:33:46 +01:00
Kostis Sagonas
1dd5a75277 Dialyzer related cleanups 2010-10-12 05:11:36 +08:00
Kostis Sagonas
91143ed4b3 Simplify macro
As a bonus it's also optimized.
2010-10-02 00:16:23 +08:00
Kostis Sagonas
76cebab9a9 Avoid unnecessary construction of deep strings
Especially when the -spec specifies that a string() is returned.
2010-10-02 00:16:23 +08:00
Juan Jose Comellas
8f54692a29 Remove output of command line when executing dialyzer. 2010-09-23 15:14:41 -03:00
Juan Jose Comellas
4de6670d02 Release v0.3.0 2010-09-23 15:13:22 -03:00
Juan Jose Comellas
5cde8b5e4b Remove dialyzer warnings. Clean up comments. 2010-09-23 15:09:55 -03:00
Juan Jose Comellas
f539fbbc8a Add support for rebar. 2010-09-23 15:08:58 -03:00
Martin Logan
58960e6356 added the registered tuple 2010-09-14 06:12:34 +08: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
Eric Merritt
02eef09d89 add getopt.app so getopt fits into releases 2010-08-11 21:07:02 +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
2a42bd761c Special case for boolean arguments to consider them enabled when the argument is missing. 2009-12-31 10:39:35 -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
a59893e9b9 Add support for options with embedded arguments without the '--' prefix.
e.g. "verbose=1"
2009-12-30 18:38:42 -03:00
Juan Jose Comellas
0329f560c4 Add support for embedded arguments with equal characters in them.
e.g. "--var=debug=1" --> {var, "debug=1"}
2009-12-30 18:11:25 -03:00
Juan Jose Comellas
d26cb9df09 Add support for arguments assigned to options with an equal ('=')
character within the option string. e.g. "--port=1000".
2009-12-30 17:20:35 -03:00
Juan Jose Comellas
0be58dc525 Avoid hardcoding escript name. 2009-12-17 15:34:48 -03:00
Juan Jose Comellas
3e83a0e928 Small formatting change to README. 2009-11-16 19:27:19 -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
Juan Jose Comellas
109d9f5f2a Cleaned up code. 2009-10-13 19:21:57 -03:00
Juan Jose Comellas
1da93693e2 Cleaned up code. 2009-10-13 19:18:46 -03:00
Juan Jose Comellas
46959813a9 Cleaned up README. 2009-10-13 19:14:40 -03:00
Juan Jose Comellas
cfae6a2abf Added BSD license. 2009-10-13 19:08:39 -03:00
Juan Jose Comellas
e9cf4aff22 Renamed some make targets. 2009-10-13 18:38:48 -03:00
Juan Jose Comellas
4c715eaa94 Added example file and make target. 2009-10-13 18:35:23 -03:00
Juan Jose Comellas
08392f62fe The command line arguments can now be passed as string. 2009-10-13 18:34:51 -03:00
Juan Jose Comellas
5a1d192b4a Updated documentation. 2009-10-13 17:56:42 -03:00
Juan Jose Comellas
8456f1018b Changed macro used for indentation. 2009-10-13 17:55:12 -03:00
Juan Jose Comellas
6cf2a8c0dd Added README. 2009-10-13 17:42:55 -03:00
Juan Jose Comellas
34e72bacb9 Added support for multiple short options in a single command-line
argument:
e.g. parse(SpecList, ["-abc"]). == parse(SpecList, ["-a", "-b", "-c"]).
2009-10-13 17:33:20 -03:00
Juan Jose Comellas
468002ff8e Added edoc comments. 2009-10-06 17:03:51 -03:00
Juan Jose Comellas
7fcdbbe777 Added file to track empty directory. 2009-10-05 17:13:47 -03:00
Juan Jose Comellas
3c84c8a9fc Use Erlang make module to compile. 2009-10-05 17:10:33 -03:00
Juan Jose Comellas
cc6bf5810a Added edoc comments. 2009-10-05 17:09:04 -03:00
Juan Jose Comellas
35395b82e8 Initial commit. 2009-10-02 19:43:13 -03:00