Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 684 Bytes

readme.md

File metadata and controls

33 lines (23 loc) · 684 Bytes

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