Revision | 99221256151845f5eb4cedac750b08e7ab14d92d (tree) |
---|---|
Time | 2022-01-22 06:01:31 |
Author | John Snow <jsnow@redh...> |
Commiter | John Snow |
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>
@@ -9,7 +9,7 @@ | ||
9 | 9 | from qemu import qmp |
10 | 10 | import sys |
11 | 11 | |
12 | -if len(sys.argv) != 1: | |
12 | +if len(sys.argv) != 2: | |
13 | 13 | print("syntax: %s QMP-SOCK\n\n" % __file__ + |
14 | 14 | "Where QMP-SOCK points to a QEMU process such as\n\n" + |
15 | 15 | " # qemu-system-x86_64 -qmp unix:/tmp/qmp,server,nowait " + |
@@ -66,7 +66,6 @@ levels = [ | ||
66 | 66 | |
67 | 67 | |
68 | 68 | sock = sys.argv[1] |
69 | -cmd = sys.argv[2] | |
70 | 69 | shell = qmp.QEMUMonitorProtocol(sock) |
71 | 70 | shell.connect() |
72 | 71 |