summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2014-07-07 15:30:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-10 17:38:34 +0100
commitf2ab61968129c6c15b0a61968a7761ccce5a469a (patch)
treeaead5da20e1ab525b1c0d1391391a8019e17897d /scripts/wic
parentb5dceca4369ef2ae0825d5298aa640b68d7d7da1 (diff)
downloadpoky-f2ab61968129c6c15b0a61968a7761ccce5a469a.tar.gz
wic: Add dummy subcommand and usage strings
In order to reuse the existing subcommand infrastructure to display various general-purpose help topics, add a dummy 'help_topic' subcommand and usage string. This allows users to invoke general help topics by the natural form 'wic help <topic>' even though topic doesn't correspond to a real subcommand. (From OE-Core rev: d03f39a99058c2393d7b50ac4909bdaa84b09920) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 2d3fd09d71..00eddfd7bc 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -226,6 +226,19 @@ def wic_list_subcommand(args, usage_str):
226 sys.exit(1) 226 sys.exit(1)
227 227
228 228
229def wic_help_topic_subcommand(args, usage_str):
230 """
231 Command-line handling for help-only 'subcommands'. This is
232 essentially a dummy command that doesn nothing but allow users to
233 use the existing subcommand infrastructure to display help on a
234 particular topic not attached to any particular subcommand.
235 """
236 pass
237
238
239wic_help_topic_usage = """
240"""
241
229subcommands = { 242subcommands = {
230 "create": [wic_create_subcommand, 243 "create": [wic_create_subcommand,
231 wic_create_usage, 244 wic_create_usage,