/args

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

This is adaptation Java example comand line argument parser from Robin Martin "Clean code" book on python.

Written for the study how to write clean code.

Agreements:

    Methods: 

        def methodname(): # public
        def _methodname(): # protected
        def __methodname(): # private

Usage cli:

Example

    $ python -i argscli.py x* -x stringParam
    >>> args.getString('x')
    'stringParam'

Run tests:

    $ python -m unittest tests.ArgsTest
    $ python -m unittest tests.ArgsExceptionTest