forked from M-Labs/artiq
1
0
Fork 0

artiq_browser: fix command line argument handling. Closes #1404

This commit is contained in:
Sebastien Bourdeauducq 2019-12-11 16:18:56 +08:00
parent 52112d54f9
commit ac09f3a5da
1 changed files with 3 additions and 2 deletions

View File

@ -10,10 +10,11 @@ from PyQt5 import QtCore, QtGui, QtWidgets
from quamash import QEventLoop from quamash import QEventLoop
from sipyco.asyncio_tools import atexit_register_coroutine from sipyco.asyncio_tools import atexit_register_coroutine
from sipyco import common_args
from artiq import __version__ as artiq_version from artiq import __version__ as artiq_version
from artiq import __artiq_dir__ as artiq_dir from artiq import __artiq_dir__ as artiq_dir
from artiq.tools import add_common_args, get_user_config_dir from artiq.tools import get_user_config_dir
from artiq.gui import state, applets, models, log from artiq.gui import state, applets, models, log
from artiq.browser import datasets, files, experiments from artiq.browser import datasets, files, experiments
@ -41,7 +42,7 @@ def get_argparser():
help="TCP port to use to connect to the master") help="TCP port to use to connect to the master")
parser.add_argument("select", metavar="SELECT", nargs="?", parser.add_argument("select", metavar="SELECT", nargs="?",
help="directory to browse or file to load") help="directory to browse or file to load")
add_common_args(parser) common_args.verbosity_args(parser)
return parser return parser