From b718ae57b03ec78e1ee6e3ea47023cb419537c77 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 22 Jan 2016 01:37:23 +0200 Subject: [PATCH] Fix arguments length --- slpkg/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slpkg/main.py b/slpkg/main.py index 2b474d83..51bd60e1 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -378,7 +378,8 @@ class ArgParse(object): if arg not in additional_options: usage("") raise SystemExit() - if (len(self.args) >= 3 and self.args[0] in options and + if (len(self.args) >= 2 and len(self.args) <= 3 and + self.args[0] in options and self.args[1] in self.meta.repositories): TrackingDeps(self.args[2], self.args[1], flag).run() elif (len(self.args) >= 2 and