[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/17] scripts/cpu-x86-uarch-abi: fix CLI parsing
From: |
John Snow |
Subject: |
[PULL 15/17] scripts/cpu-x86-uarch-abi: fix CLI parsing |
Date: |
Fri, 21 Jan 2022 19:09:29 -0500 |
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
scripts/cpu-x86-uarch-abi.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/cpu-x86-uarch-abi.py b/scripts/cpu-x86-uarch-abi.py
index 08acc52a81..8963d90f0b 100644
--- a/scripts/cpu-x86-uarch-abi.py
+++ b/scripts/cpu-x86-uarch-abi.py
@@ -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 @@
sock = sys.argv[1]
-cmd = sys.argv[2]
shell = qmp.QEMUMonitorProtocol(sock)
shell.connect()
--
2.31.1
- [PULL 05/17] python/aqmp: handle asyncio.TimeoutError on execute(), (continued)
- [PULL 05/17] python/aqmp: handle asyncio.TimeoutError on execute(), John Snow, 2022/01/21
- [PULL 04/17] python/aqmp: add __del__ method to legacy interface, John Snow, 2022/01/21
- [PULL 06/17] python/aqmp: copy type definitions from qmp, John Snow, 2022/01/21
- [PULL 08/17] python/aqmp: rename AQMPError to QMPError, John Snow, 2022/01/21
- [PULL 09/17] python/qemu-ga-client: don't use deprecated CLI syntax in usage comment, John Snow, 2022/01/21
- [PULL 07/17] python/aqmp: add SocketAddrT to package root, John Snow, 2022/01/21
- [PULL 12/17] python/qmp: switch qmp-shell to AQMP, John Snow, 2022/01/21
- [PULL 13/17] python: move qmp utilities to python/qemu/utils, John Snow, 2022/01/21
- [PULL 16/17] scripts/cpu-x86-uarch-abi: switch to AQMP, John Snow, 2022/01/21
- [PULL 14/17] python: move qmp-shell under the AQMP package, John Snow, 2022/01/21
- [PULL 15/17] scripts/cpu-x86-uarch-abi: fix CLI parsing,
John Snow <=
- [PULL 10/17] python/qmp: switch qemu-ga-client to AQMP, John Snow, 2022/01/21
- [PULL 17/17] scripts/render-block-graph: switch to AQMP, John Snow, 2022/01/21
- [PULL 11/17] python/qmp: switch qom tools to AQMP, John Snow, 2022/01/21
- Re: [PULL 00/17] Python patches, Peter Maydell, 2022/01/22