[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 04/18] configure: Improve help behavior
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 04/18] configure: Improve help behavior |
Date: |
Mon, 28 Apr 2014 09:07:50 +0400 |
From: Fam Zheng <address@hidden>
Old:
There are two paths to show help and exit 1, one is with "-h" or
"--help", one is with invalid options.
New:
Show help and exit 0 for --help.
On invalid option, don't show the long help and bury the early "ERROR:"
line, just give a message pointing to --help.
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
configure | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index b08afc3..2fbec59 100755
--- a/configure
+++ b/configure
@@ -1087,7 +1087,10 @@ for opt do
;;
--enable-quorum) quorum="yes"
;;
- *) echo "ERROR: unknown option $opt"; show_help="yes"
+ *)
+ echo "ERROR: unknown option $opt"
+ echo "Try '$0 --help' for more information"
+ exit 1
;;
esac
done
@@ -1353,7 +1356,7 @@ Advanced options (experts only):
NOTE: The object files are built at the place where configure is launched
EOF
-exit 1
+exit 0
fi
# Now we have handled --enable-tcg-interpreter and know we're not just
--
1.7.10.4
- [Qemu-trivial] [PULL 00/18] Trivial patches for 2014-04-28, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 01/18] misc: Use cpu_physical_memory_read and cpu_physical_memory_write, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 02/18] qemu-option: introduce qemu_find_opts_singleton, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 03/18] vl: convert -m to QemuOpts, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 05/18] move test-* from .gitignore to tests/.gitignore, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 07/18] gitignore: cleanups #2, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 12/18] Add QEMU logo (SVG file), Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 13/18] net/net.c: remove unnecessary semicolon, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 06/18] tests/.gitignore: Ignore test-rfifolock, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 04/18] configure: Improve help behavior,
Michael Tokarev <=
- [Qemu-trivial] [PULL 18/18] slirp/smb: Move ncalrpc directory to tmp, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 09/18] vl: Eliminate a superfluous local variable, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 08/18] vl: Remove useless 'continue', Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 16/18] po/Makefile: fix $SRC_PATH reference, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 15/18] init_paths: fix minor memory leak, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 11/18] vl: avoid closing stdout with 'writeconfig', Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 10/18] xilinx: Fix typo in comment (Marvel -> Marvell), Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 17/18] po: add proper Langua ge: tags to .po files, Michael Tokarev, 2014/04/28
- [Qemu-trivial] [PULL 14/18] virtfs-proxy-helper: fix call to accept, Michael Tokarev, 2014/04/28
- Re: [Qemu-trivial] [Qemu-devel] [PULL 00/18] Trivial patches for 2014-04-28, Peter Maydell, 2014/04/28