Add functools.wraps.

This commit is contained in:
Ethan Dalool 2020-01-30 19:01:31 -08:00
parent 22febf2ef7
commit 31048fc89a

View file

@ -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()