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>
This commit is contained in:
parent
dc2c873dc6
commit
6ba1beb76c
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
# This script has subcommands which operate against your bitbake layers, either
|
# This script has subcommands which operate against your bitbake layers, either
|
||||||
# displaying useful information, or acting against them.
|
# displaying useful information, or acting against them.
|
||||||
# Currently, it only provides a show_appends command, which shows you what
|
# See the help output for details on available commands.
|
||||||
# bbappends are in effect, and warns you if you have appends which are not being
|
|
||||||
# utilized.
|
|
||||||
|
|
||||||
import cmd
|
import cmd
|
||||||
import logging
|
import logging
|
||||||
|
@ -23,7 +21,6 @@ from bb.cooker import state
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('BitBake')
|
logger = logging.getLogger('BitBake')
|
||||||
default_cmd = 'show_appends'
|
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
@ -34,7 +31,7 @@ def main(args):
|
||||||
if args:
|
if args:
|
||||||
cmds.onecmd(' '.join(args))
|
cmds.onecmd(' '.join(args))
|
||||||
else:
|
else:
|
||||||
cmds.onecmd(default_cmd)
|
cmds.do_help('')
|
||||||
return cmds.returncode
|
return cmds.returncode
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue