-
Notifications
You must be signed in to change notification settings - Fork 102
Changelog
davetron5000 edited this page Dec 11, 2010
·
49 revisions
- Changed uses of
map(&:symbol)
to older form, since this doesn't work on 100% of Ruby 1.8.7s.
- Changed default data structure of options back to a Hash. If you want to use the OpenStruct subclass Options, simply put use_openstruct true in your command line definition.
- Added ability to use
help
command to list commands suitable for creating bash completion script -
options
andglobal_options
will now contain values for all aliases of each flag and switch, so if you created a flag withflag [:f,:flag]
and the user specifies-f foo
on the command line, bothoptions[:f]
andoptions[:flag]
will have the valuefoo
. Same behavior for--flag=foo
. - You may now no-longer use names that have already been used. So if you declare a switch
switch :foo
and then later declare a flagflag [:f,:foo]
, you get anArgumentError
. This is only checked within relevant scope, so you can still use the same option names between commands, and you can still have the same option name once in global and once in command scope. This is really a bugfix as the behavior of GLI was not clear before. - long_desc now shows up in generated rdoc for flags and switches
- Scaffoling now generates a usable
Gemfile
for bundler - More direct support for version numbers in GLI-managed apps
- Changed the way we locate
FILE
's directory; if it's a symlink it would've have worked. Required adding:realpath
method toFile
for pre 1.9.2 rubies
No changelog tracking was done for these versions :(