args_split shouldn't be [""] when args
is empty
This commit is contained in:
parent
cb111f0c93
commit
050bfd29f7
1 changed files with 6 additions and 5 deletions
|
@ -102,6 +102,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
hook = potential_hook
|
hook = potential_hook
|
||||||
|
|
||||||
|
if args:
|
||||||
argparse = hook.get_kwarg("argparse", "plain")
|
argparse = hook.get_kwarg("argparse", "plain")
|
||||||
if argparse == "shlex":
|
if argparse == "shlex":
|
||||||
args_split = shlex.split(args)
|
args_split = shlex.split(args)
|
||||||
|
|
Loading…
Reference in a new issue