Add functools.wraps.
This commit is contained in:
parent
22febf2ef7
commit
31048fc89a
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@ def add_previews(docstring, sub_docstrings):
|
||||||
|
|
||||||
def betterhelp(docstring):
|
def betterhelp(docstring):
|
||||||
def wrapper(main):
|
def wrapper(main):
|
||||||
|
@functools.wraps(main)
|
||||||
def wrapped(argv):
|
def wrapped(argv):
|
||||||
argument = listget(argv, 0, '').lower()
|
argument = listget(argv, 0, '').lower()
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ def betterhelp(docstring):
|
||||||
|
|
||||||
def subparser_betterhelp(main_docstring, sub_docstrings):
|
def subparser_betterhelp(main_docstring, sub_docstrings):
|
||||||
def wrapper(main):
|
def wrapper(main):
|
||||||
|
@functools.wraps(main)
|
||||||
def wrapped(argv):
|
def wrapped(argv):
|
||||||
command = listget(argv, 0, '').lower()
|
command = listget(argv, 0, '').lower()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue