-
Notifications
You must be signed in to change notification settings - Fork 1
Experimental APIs
TylerTemp edited this page Jan 28, 2018
·
2 revisions
from docpie import docpie
docpie(doc, argv=None, help=True, version=None
stdopt=True, attachopt=True, attachvalue=True,
helpstyle = 'python',
auto2dashes=True, name=None, case_sensitive=False,
optionsfirst=False, appearedonly=False, extra={})
Note: Don't change these arguments unless you know what you're doing.
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 {} \;
type: bool
; default: True
when set to True
you can write several short option
into one.
Only works when stdopt=True
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