]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
linux-user: Fix broken "-version" option
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 29 Sep 2011 14:48:12 +0000 (15:48 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Fri, 21 Oct 2011 15:59:58 +0000 (17:59 +0200)
commit1386d4c0f5ce4c4391f2024a36c77eb8fb152e90
tree2cf13fa9e4a3a099d083ac1c64293823a5156753
parentc2e2343e1faae7bbc77574c12a25881b1b696808
linux-user: Fix broken "-version" option

Fix the "-version" option, which was accidentally broken in commit
fc9c541:
 * exit after printing version information rather than proceeding
   blithely onward (and likely printing the full usage message)
 * correct the cut-n-paste error in the usage message for it
 * don't insist on the presence of a following argument for
   options which don't take an argument (this was preventing
   'qemu-arm -version' from working)
 * remove a spurious argc check from the beginning of main() which
   meant 'QEMU_VERSION=1 qemu-arm' didn't work.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
linux-user/main.c