diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-07-07 15:30:12 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-10 17:38:34 +0100 |
commit | ffcc88066b258eb506d7e6007fe2bdd8609af9b8 (patch) | |
tree | b6cc46192500dcac3a369eee53386037c5c84228 /scripts/wic | |
parent | f4a1a9afdf0ac4eab0bdb09354a51077ed78261d (diff) | |
download | tizen-distro-ffcc88066b258eb506d7e6007fe2bdd8609af9b8.tar.gz tizen-distro-ffcc88066b258eb506d7e6007fe2bdd8609af9b8.tar.bz2 tizen-distro-ffcc88066b258eb506d7e6007fe2bdd8609af9b8.zip |
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-x | scripts/wic | 13 |
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): sys.exit(1) +def wic_help_topic_subcommand(args, usage_str): + """ + Command-line handling for help-only 'subcommands'. This is + essentially a dummy command that doesn nothing but allow users to + use the existing subcommand infrastructure to display help on a + particular topic not attached to any particular subcommand. + """ + pass + + +wic_help_topic_usage = """ +""" + subcommands = { "create": [wic_create_subcommand, wic_create_usage, |