mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
cli_function: don't blow on empty help
This commit is contained in:
@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user