diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index ba70683d..d3e5bf70 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -70,7 +70,8 @@ class Command(object): self.options() self.commonopts() (self.options, self.args) = self.parser.parse_args() - self.args.pop(0) # exclude command arg + if self.args: + self.args.pop(0) # exclude command arg self.process_opts()