cli_function: don't blow on empty help

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-09-23 02:00:01 +00:00
parent 5f74789468
commit 9ff74d33ba

View File

@ -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]: