docs/changelog.rst
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Sat, 11 Sep 2010 15:16:24 +0400
changeset 119 f9c027029540
parent 111 e40251bf5a23
child 120 bf6908d12aae
permissions -rw-r--r--
Fixed catching unnececcary exceptions Exception Abort can't be thrown, so it is useless. Catching SystemExit and KeyboardInterrupt makes little sense as the thread can be terminated by KeyboardInterrupt before or after entering the wrapped command processing function. So one have to handle these exceptions in his main function anyway. Catching any exception in order to print a message and re-raise it changes the standard behaviour and might seem confusing.

Changelog
---------

0.9.10
~~~~~~

 - if default value of an option is a fuction, always call it (None is passed in
   case when option is not supplied)
 - always call a function if it's default argument for an option
 - some cleanup with better support for python 3
 - initial support for autocompletion (borrowed from PIP)

0.9.9
~~~~~
 - Now it's possible to call commands as regular function, where every
   non-supplied option will receive proper default (defined in option spec)
 - Globaloptions were simply dropped after parsing, fold them in regular options
 - Replace _ with - in command names, same as in options names
 - Respect empty strings as usage

0.9.8
~~~~~
Fixed bug with option names clashing with name of arguments for call_cmd. 

0.9.7
~~~~~
Library renamed to opster.

0.9.6
~~~~~
 - Checks for option definition: long name should be specified always, short
   name should be 1 character in length if available.
 - More specific argument name in guessed usage (this happens if you have not
   specified usage for command).
 - Ability to add global decorator for all commands. See ``test.py`` in
   repository for example: ``ui`` object, to handle verbose/quiet options.

0.9.5
~~~~~
Fixed bug, which prevented programs to work without arguments (displayed help
instead) if they are not using subcommands.

0.9.4
~~~~~
 - Ability to hide subcommands from help listing.
 - Append program name to subcommand usage.

0.9.3
~~~~~
Minor fix for setup.py, to avoid troubles with installing when there is no docs
in package.

0.9.2
~~~~~
Ability to call commands as regular functions, using arguments and keyword
arguments.

0.9.1
~~~~~
Fixed problem with multiple help options in subcommands

0.9
~~~
Initial version