summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/options.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-04-15 10:13:43 +1000
committerChris Johns <chrisj@rtems.org>2013-04-15 10:13:43 +1000
commitc95c2456a420564a92867d49cfdebadb1ffda525 (patch)
treeec803ef63c87b61b7080c9de3fe464901f3e6ea7 /source-builder/sb/options.py
parentPR 2115 - Check prefix path write access before starting to build. (diff)
downloadrtems-source-builder-c95c2456a420564a92867d49cfdebadb1ffda525.tar.bz2
PR 2116 - Fix the option parsing to handle both ' ' and '='.
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r--source-builder/sb/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py
index ed7430e..ffa974c 100644
--- a/source-builder/sb/options.py
+++ b/source-builder/sb/options.py
@@ -227,10 +227,10 @@ class command_line:
long_opt = self._long_opts[lo]
if len(los) == 1:
if long_opt[2]:
- if arg == len(args) - 1:
+ if arg == len(self.args) - 1:
raise error.general('option requires a parameter: %s' % (lo))
arg += 1
- value = args[arg]
+ value = self.args[arg]
else:
value = None
else: