[equo] when running with args: "equo --bashcomp", do not call args.pop(0) if args is empty

This commit is contained in:
Fabio Erculiani
2012-12-26 19:32:36 +01:00
parent 329da2587f
commit bb052e992f
+2 -1
View File
@@ -291,7 +291,8 @@ def main():
# argv -> equo --bashcomp equo repo
# and we need to drop --bashcomp and
# argv[2]
args.pop(0)
if args:
args.pop(0)
cmd = None
last_arg = None