Version history

0.2.4

Bugfix for apply method. Wrong return type for some option types.

0.2.3

Added “:comp” as new option type. It allows specifying a

single argument option multiple times.
0.2.2

Must have “-h” with mutex prim to prevent subcmd error.

0.2.1

Handle unknown subcmd/no-default case gracefully.

0.2.0

Support for option type definition through primitives. Almost fully backwards compatible with previous versions.

0.1.7

Added to_hopt method to Opt.

0.1.6

Added to_hash method to Opt.

0.1.5

Moved evalCheck from private methods to public methods. Opt.error/fatal/warn API methods.

0.1.4

Documentation improvements (links to methods). Fix to Opt#apply return value when type is :switch. Opt#fatal added for user error reporting towards command line user. Non-existing options for option with multiple values defaults

to an empty array.

Possibility to separate option definition and execution.

0.1.3

Customization through COMO env variable and hooks. Version information returned programmatically with Como.version. “command” is aliased to “subcmd” to enable highlighting of the main command. Aliases for “Spec.checkRule” and “Spec#checkRule”.

0.1.2

“:check_invalid” applied correctly. Header and footer configs has to include all newlines explicitly. “:error_exit” config removed (always exit with error). Exclusive option type can have zero to many arguments. Switch-options have no values only “given” should be checked. Small changes in generated usage info display. Errors are output to stderr (not stdout).

0.1.1

Testcases use relative require to local dir. Rulecheck fixes: incr and follow.

0.1.0

Subcommand feature added along with major refactoring in class' content. Many small changes to usage model, but backwards compatible.

0.0.3

Self-value operator “~” added. Parser for options including parameter settings, i.e. the Opt#params method added.

0.0.2

Opt#given is allowed an optinal block argument.

0.0.1

Initial version.