From 9ff74d33baf2cd8493de2e0b80df8cf8bf403e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Wed, 23 Sep 2020 02:00:01 +0000 Subject: [PATCH] cli_function: don't blow on empty help --- cli_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli_function.py b/cli_function.py index 09f7cc56..19f63e87 100755 --- a/cli_function.py +++ b/cli_function.py @@ -62,7 +62,7 @@ class _Argument: default = [] if self.is_bool and not 'action' in kwargs: self.kwargs['action'] = bool_action - if help is not None: + if help is not None and help != '': if default is not None: if help[-1] == '\n': if '\n\n' in help[:-1]: