From 852598c491056e79ef2125a14c9b46818dd801c4 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 29 Nov 2016 13:09:26 +0000 Subject: [PATCH] artiq_devtool: fix incorrect use of nargs in argparse. --- artiq/frontend/artiq_devtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/frontend/artiq_devtool.py b/artiq/frontend/artiq_devtool.py index b942b21f5..f30cc99da 100644 --- a/artiq/frontend/artiq_devtool.py +++ b/artiq/frontend/artiq_devtool.py @@ -22,13 +22,13 @@ def get_argparser(): verbosity_args(parser) - parser.add_argument("--host", nargs=1, metavar="HOST", + parser.add_argument("--host", metavar="HOST", type=str, default="lab.m-labs.hk", help="SSH host where the development board is located") - parser.add_argument("--serial", nargs=1, metavar="SERIAL", + parser.add_argument("--serial", metavar="SERIAL", type=str, default="/dev/ttyUSB0", help="TTY device corresponding to the development board") - parser.add_argument("--ip", nargs=1, metavar="IP", + parser.add_argument("--ip", metavar="IP", type=str, default="kc705.lab.m-labs.hk", help="IP address corresponding to the development board")