mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
cli_function: don't blow on empty help
This commit is contained in:
@@ -62,7 +62,7 @@ class _Argument:
|
|||||||
default = []
|
default = []
|
||||||
if self.is_bool and not 'action' in kwargs:
|
if self.is_bool and not 'action' in kwargs:
|
||||||
self.kwargs['action'] = bool_action
|
self.kwargs['action'] = bool_action
|
||||||
if help is not None:
|
if help is not None and help != '':
|
||||||
if default is not None:
|
if default is not None:
|
||||||
if help[-1] == '\n':
|
if help[-1] == '\n':
|
||||||
if '\n\n' in help[:-1]:
|
if '\n\n' in help[:-1]:
|
||||||
|
|||||||
Reference in New Issue
Block a user