From e3c449bcbb5c850332c984a72bea42c93b81cfc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 19 Dec 2005 15:14:48 +0000 Subject: [PATCH] fix #1288 --- pisi/cli/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()