Finaloption Publisher's description
from Alexander Solovyov
Finaloption is a command-line parser, intended to make writing command-line applications painless and easy.
Finaloption is a command-line parser, intended to make writing command-line applications painless and easy. It uses built-in Python types (lists, dictionaries, etc) to define options, which makes configuration clear and concise. Additionally it contains possibility to handle subcommands (i.e. hg commit or svn update).
JFYI: name is derived from Die Krupps' song Final Option.
That's simple example to show you example of an option definition:
from finaloption import command
@command(usage='%name [-n] MESSAGE')
nonewline=('n', False, 'don't print a newline')):
'Simple echo program'
if not nonewline:
if __name__ == '__main__':
Running this program will print the help:
echo.py [-n] MESSAGE
Simple echo program
-n --nonewline don't print a newline
-h --help show help
What's New in This Release:В· Ability to call commands as regular functions, using arguments and keyword arguments.
System Requirements:В· Perl
Program Release Status: Minor Update
Program Install Support: Install and Uninstall