forked from M-Labs/artiq
1
0
Fork 0

browser: PATH metavar

This commit is contained in:
Robert Jördens 2016-04-20 16:23:47 +02:00
parent 89772c6461
commit c9daa50591
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,8 @@ def get_argparser():
parser.add_argument("--root", default="", parser.add_argument("--root", default="",
help="root path for directory tree " help="root path for directory tree "
"(default %(default)s)") "(default %(default)s)")
parser.add_argument("PATH", nargs="?", help="browse path or file") parser.add_argument("path", metavar="PATH", nargs="?",
help="browse path or file")
verbosity_args(parser) verbosity_args(parser)
return parser return parser
@ -93,7 +94,7 @@ def main():
main_window.setStatusBar(status_bar) main_window.setStatusBar(status_bar)
d_files = files.FilesDock(datasets_sub, main_window, args.root, d_files = files.FilesDock(datasets_sub, main_window, args.root,
args.PATH) args.path)
smgr.register(d_files) smgr.register(d_files)
d_applets = applets.AppletsDock(main_window, datasets_sub) d_applets = applets.AppletsDock(main_window, datasets_sub)