aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 23:40:15 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 23:40:15 +0200
commit243200e36fcda2472a3cc70d43866a3a28d70640 (patch)
tree3dfafd9744143e0b2da56ac7f44fa43787e6bc54 /src/argparser.py
parentallow skipping usage (diff)
downloadargparser-243200e36fcda2472a3cc70d43866a3a28d70640.tar.gz
argparser-243200e36fcda2472a3cc70d43866a3a28d70640.tar.bz2
argparser-243200e36fcda2472a3cc70d43866a3a28d70640.tar.xz
variable rename
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.py')
-rw-r--r--src/argparser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argparser.py b/src/argparser.py
index 624856b..61312f3 100644
--- a/src/argparser.py
+++ b/src/argparser.py
@@ -188,9 +188,9 @@ class ArgParser():
argqueue = []
optqueue = []
- deque = []
+ queue = []
for arg in argv[1:]:
- deque.append(arg)
+ queue.append(arg)
dashed = False
tmpdashed = False
@@ -205,9 +205,9 @@ class ArgParser():
sys.stderr.write('%s: warning: unrecognised option %s\n' % (self.program, arg))
self.rc = False
- while len(deque) != 0:
- arg = deque[0]
- deque = deque[1:]
+ while len(queue) != 0:
+ arg = queue[0]
+ queue = queue[1:]
if (get > 0) and (dontget == 0):
get -= 1
argqueue.append(arg)