« Previous | Next » 

Revision 1386d4c0

ID1386d4c0f5ce4c4391f2024a36c77eb8fb152e90

Added by Peter Maydell over 12 years ago

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 <>
Signed-off-by: Andrzej Zaborowski <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences