summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-08-12 11:40:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 09:49:11 +0100
commit6ba1beb76c31c21ded2aa8a7b231a73847c5b1b7 (patch)
tree2eaa9b6602556a598a0549f59c1ba9dd8422d3dc /bitbake/bin
parentdc2c873dc63b8ce46b05c5910efa8f89fa25582d (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-layers7
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
9import cmd 7import cmd
10import logging 8import logging
@@ -23,7 +21,6 @@ from bb.cooker import state
23 21
24 22
25logger = logging.getLogger('BitBake') 23logger = logging.getLogger('BitBake')
26default_cmd = 'show_appends'
27 24
28 25
29def main(args): 26def 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