From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 2/4] bitbake-layers: show help with no command specified
Date: Fri, 12 Aug 2011 17:13:57 +0100 [thread overview]
Message-ID: <db090f5e5d300cc236d806ac01ca27cfaf418508.1313165343.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1313165343.git.paul.eggleton@linux.intel.com>
In-Reply-To: <cover.1313165343.git.paul.eggleton@linux.intel.com>
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@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
next prev parent reply other threads:[~2011-08-12 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 16:13 [PATCH 0/4] bitbake-layers minor improvements Paul Eggleton
2011-08-12 16:13 ` [PATCH 1/4] bitbake-layers: improve default command help Paul Eggleton
2011-08-12 16:13 ` Paul Eggleton [this message]
2011-08-12 16:13 ` [PATCH 3/4] bitbake-layers: use logger.plain instead of info Paul Eggleton
2011-08-12 16:20 ` Paul Eggleton
2011-08-12 16:13 ` [PATCH 4/4] bitbake-layers: extend show_layers Paul Eggleton
2011-08-15 8:31 ` [PATCH 0/4] bitbake-layers minor improvements Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=db090f5e5d300cc236d806ac01ca27cfaf418508.1313165343.git.paul.eggleton@linux.intel.com \
--to=paul.eggleton@linux.intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox