[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5139/8267] runqemu: add -h and --help
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5139/8267] runqemu: add -h and --help
- Date: Sun, 17 Dec 2017 03:01:13 +0000 (UTC)
commit 007960738792890fece6cfb0a75f27e7184cadf2
Author: Robert Yang <liezhi yang windriver com>
Date: Thu Mar 16 03:13:25 2017 -0700
runqemu: add -h and --help
Fixed:
$ runqemu -h
runqemu - INFO - Assuming MACHINE = -h
runqemu - INFO - Running MACHINE=-h bitbake -e...
[snip]
Exception: FSTYPE is NULL!
[YOCTO #10941]
(From OE-Core rev: 6b9dd7a589537b12da648be50298cf7d36461797)
Signed-off-by: Robert Yang <liezhi yang windriver com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/runqemu | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/scripts/runqemu b/scripts/runqemu
index cfdb0c5..1721956 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -80,7 +80,7 @@ of the following environment variables (in any order):
biosfilename=<filename> - specify bios filename
qemuparams=<xyz> - specify custom parameters to QEMU
bootparams=<xyz> - specify custom kernel parameters during boot
- help: print this text
+ help, -h, --help: print this text
Examples:
runqemu qemuarm
@@ -1161,7 +1161,8 @@ class BaseConfig(object):
logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" %
err.output.decode('utf-8'))
def main():
- if len(sys.argv) == 1 or "help" in sys.argv:
+ if len(sys.argv) == 1 or "help" in sys.argv or \
+ '-h' in sys.argv or '--help' in sys.argv:
print_usage()
return 0
config = BaseConfig()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]