From 232bec0ea3309c62264cf3349f449eb251989ad3 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 8 Jun 2021 21:02:46 +0200 Subject: argv[1] is the subcommand --- python/refcat/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/refcat/cli.py b/python/refcat/cli.py index 2b90c61..042bb3d 100644 --- a/python/refcat/cli.py +++ b/python/refcat/cli.py @@ -109,7 +109,7 @@ def ls(*args): """ if len(args) == 0: raise ValueError("ls failed: task name required") - parser = CmdlineParser(sys.argv[1:]) + parser = CmdlineParser(sys.argv[2:]) output = parser.get_task_obj().output() # task_class = find_task_class(args[0]) print(output.path) -- cgit v1.2.3