From 31048fc89a135dbf57f148016f0743b4ea2b5551 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 30 Jan 2020 19:01:31 -0800 Subject: [PATCH] Add functools.wraps. --- voussoirkit/betterhelp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voussoirkit/betterhelp.py b/voussoirkit/betterhelp.py index db516c6..9c9a2bf 100644 --- a/voussoirkit/betterhelp.py +++ b/voussoirkit/betterhelp.py @@ -43,6 +43,7 @@ def add_previews(docstring, sub_docstrings): def betterhelp(docstring): def wrapper(main): + @functools.wraps(main) def wrapped(argv): argument = listget(argv, 0, '').lower() @@ -56,6 +57,7 @@ def betterhelp(docstring): def subparser_betterhelp(main_docstring, sub_docstrings): def wrapper(main): + @functools.wraps(main) def wrapped(argv): command = listget(argv, 0, '').lower()