[bitbake-devel] [PATCH 2/4] bitbake-layers: show help with no command specified
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Aug 12 16:13:57 UTC 2011
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.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
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 0900d00..2845ae5 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -2,9 +2,7 @@
# This script has subcommands which operate against your bitbake layers, either
# displaying useful information, or acting against them.
-# Currently, it only provides a show_appends command, which shows you what
-# bbappends are in effect, and warns you if you have appends which are not being
-# utilized.
+# See the help output for details on available commands.
import cmd
import logging
@@ -23,7 +21,6 @@ from bb.cooker import state
logger = logging.getLogger('BitBake')
-default_cmd = 'show_appends'
def main(args):
@@ -34,7 +31,7 @@ def main(args):
if args:
cmds.onecmd(' '.join(args))
else:
- cmds.onecmd(default_cmd)
+ cmds.do_help('')
return cmds.returncode
--
1.7.4.1
More information about the bitbake-devel
mailing list