[Docpie]

Fork me on GitHub

Experimental APIs


from docpie import docpie
docpie(doc, argv=None, help=True, version=None,
       stdopt=True, attachopt=True, attachvalue=True,
       auto2dashes=True, name=None, case_sensitive=False,
       optionsfirst=False, appearedonly=False, extra={})

Note

Don't change these value unless you know what you're doing

stdopt

type: bool; default: True

stdopt is a switch of POSIX standard. When set to False, options like -flag will also be interpreted as short option.

Some old programs like find use this style of command line:

find . -iname "*.pyc" -exec rm {} \;

attachopt

type: bool; default: True

when set to True you can write several short option into one.

Only works when stdopt=True

attachvalue

type: bool; default: True

When set to True you can write a short option and the value of it's argument together.

Only works when stdopt=True


If you like this project, you can buy me a beer to help me make it better! | Flattr this

侧栏导航