Skip to content

Commit

Permalink
- osc.cli.parse: fixed _resolve_option method in class _OscNamespace
Browse files Browse the repository at this point in the history
Use "info.set" instead "info.add". Broken by commit 2a23166
(which inter alia changed the semantic of "add") which was done in Oct12.
We really need a testsuite for the cli in order to detect such breakages:/
  • Loading branch information
marcus-h committed Dec 29, 2012
1 parent 0391d71 commit 3e7e008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osc/cli/parse.py
Expand Up @@ -82,7 +82,8 @@ def _resolve_option(self, info, opt):
while args:
cur = args.pop(0)
res.append(oargs.resolve(*cur, path=self._path()))
info.add(name, res)
# use set to overwrite the old list
info.set(name, res)

def _resolve_positional_args(self):
"""Resolve positional arguments.
Expand Down

0 comments on commit 3e7e008

Please sign in to comment.