scripts/cpu-x86-uarch-abi: fix CLI parsing

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
staging
John Snow 2022-01-10 18:28:57 -05:00
parent fd9c3a6219
commit 9922125615
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@
from qemu import qmp
import sys
if len(sys.argv) != 1:
if len(sys.argv) != 2:
print("syntax: %s QMP-SOCK\n\n" % __file__ +
"Where QMP-SOCK points to a QEMU process such as\n\n" +
" # qemu-system-x86_64 -qmp unix:/tmp/qmp,server,nowait " +
@ -66,7 +66,6 @@ levels = [
sock = sys.argv[1]
cmd = sys.argv[2]
shell = qmp.QEMUMonitorProtocol(sock)
shell.connect()