diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-08-12 11:40:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 09:49:11 +0100 |
commit | 6ba1beb76c31c21ded2aa8a7b231a73847c5b1b7 (patch) | |
tree | 2eaa9b6602556a598a0549f59c1ba9dd8422d3dc | |
parent | dc2c873dc63b8ce46b05c5910efa8f89fa25582d (diff) | |
download | poky-6ba1beb76c31c21ded2aa8a7b231a73847c5b1b7.tar.gz |
bitbake-layers: show help with no command specified
Instead of running show_appends when no command is specified, show the
default help text. Running show_appends by default made sense previously
when that was the only real command provided, but now we have several
useful commands implemented.
(Bitbake rev: 62a2e0aa1ac8a459928d1f72783b6ca9c1756350)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/bin/bitbake-layers | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 0900d001f8..2845ae5f2e 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -2,9 +2,7 @@ | |||
2 | 2 | ||
3 | # This script has subcommands which operate against your bitbake layers, either | 3 | # This script has subcommands which operate against your bitbake layers, either |
4 | # displaying useful information, or acting against them. | 4 | # displaying useful information, or acting against them. |
5 | # Currently, it only provides a show_appends command, which shows you what | 5 | # See the help output for details on available commands. |
6 | # bbappends are in effect, and warns you if you have appends which are not being | ||
7 | # utilized. | ||
8 | 6 | ||
9 | import cmd | 7 | import cmd |
10 | import logging | 8 | import logging |
@@ -23,7 +21,6 @@ from bb.cooker import state | |||
23 | 21 | ||
24 | 22 | ||
25 | logger = logging.getLogger('BitBake') | 23 | logger = logging.getLogger('BitBake') |
26 | default_cmd = 'show_appends' | ||
27 | 24 | ||
28 | 25 | ||
29 | def main(args): | 26 | def main(args): |
@@ -34,7 +31,7 @@ def main(args): | |||
34 | if args: | 31 | if args: |
35 | cmds.onecmd(' '.join(args)) | 32 | cmds.onecmd(' '.join(args)) |
36 | else: | 33 | else: |
37 | cmds.onecmd(default_cmd) | 34 | cmds.do_help('') |
38 | return cmds.returncode | 35 | return cmds.returncode |
39 | 36 | ||
40 | 37 | ||