diff options
| -rw-r--r-- | scripts/lib/image/help.py | 2 | ||||
| -rwxr-xr-x | scripts/wic | 2 |
2 files changed, 3 insertions, 1 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 | ||
diff --git a/scripts/wic b/scripts/wic index c1d3003378..5aa2393cf9 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -280,7 +280,7 @@ subcommands = { | |||
| 280 | hlp.wic_list_help], | 280 | hlp.wic_list_help], |
| 281 | "plugins": [wic_help_topic_subcommand, | 281 | "plugins": [wic_help_topic_subcommand, |
| 282 | wic_help_topic_usage, | 282 | wic_help_topic_usage, |
| 283 | hlp.get_wic_plugins_help()], | 283 | hlp.get_wic_plugins_help], |
| 284 | "overview": [wic_help_topic_subcommand, | 284 | "overview": [wic_help_topic_subcommand, |
| 285 | wic_help_topic_usage, | 285 | wic_help_topic_usage, |
| 286 | hlp.wic_overview_help], | 286 | hlp.wic_overview_help], |
