diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-15 10:13:43 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-15 10:13:43 +1000 |
commit | c95c2456a420564a92867d49cfdebadb1ffda525 (patch) | |
tree | ec803ef63c87b61b7080c9de3fe464901f3e6ea7 /source-builder/sb/options.py | |
parent | PR 2115 - Check prefix path write access before starting to build. (diff) | |
download | rtems-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.py | 4 |
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: |