[equo] when running with args: "equo --bashcomp", do not call args.pop(0) if args is empty
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user