diff options
Diffstat (limited to 'scripts/lib/image/help.py')
-rw-r--r-- | scripts/lib/image/help.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index dc6ff36610..717d84755f 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image/help.py | |||
@@ -42,6 +42,8 @@ def display_help(subcommand, subcommands): | |||
42 | return False | 42 | return False |
43 | 43 | ||
44 | hlp = subcommands.get(subcommand, subcommand_error)[2] | 44 | hlp = subcommands.get(subcommand, subcommand_error)[2] |
45 | if callable(hlp): | ||
46 | hlp = hlp() | ||
45 | pager = subprocess.Popen('less', stdin=subprocess.PIPE) | 47 | pager = subprocess.Popen('less', stdin=subprocess.PIPE) |
46 | pager.communicate(hlp) | 48 | pager.communicate(hlp) |
47 | 49 | ||