public
Description: Choice is a simple little gem for easily defining and parsing command line options with a friendly DSL.
Clone URL: git://github.com/defunkt/choice.git
choice / CHANGELOG
100644 20 lines (17 sloc) 1.048 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0.1.2:
  - Made validate directive accept block and validate against its boolean value.
  - Created shorthand format for defining options directly with a hash.
 
0.1.1:
  - Fixed test_option.rb to be self sufficient.
  - Fix so that long argument with equals sign in it will parse correctly [Justin Bailey]
  - Added 'defaultize' deprecation warning. Too much magic can be harmful.
  - Made Choice::Writer::puts, print, and printf public, can now possibly be used by other Choice classes.
  - Changed UnknownArgument to UnknownOption (more descriptive)
  - Added a 'valid' option as per bugtracker request for 'enum.' [Alexis Li]
  - Change --long=[ARG] optional format to --long[=ARG] but keep around old format just in case.
  - Added list format to options as per bug tracker suggestion in the format of --long=*LONG [Alexis Li]
  - Added --long ARG format. Works with --long [ARG] and --long *ARG and --long [*ARG]
  - Added :required option which insists an option is present.
  - Added gamble.rb card game example.
 
0.1.0:
  - First release