Skip to content

Commit

Permalink
Changelog/comments re: #83
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Sep 15, 2013
1 parent 84dc577 commit e9021ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.rst
Expand Up @@ -9,6 +9,9 @@ Temporary changelog until we get something multi-branch-aware working.

* Fall back to sane defaults for PTY sizes when autodetection gives insane
results. Thanks to `@akitada` for the patch.
* Fix a bug preventing underscored keyword arguments from working correctly as
CLI flags (e.g. ``mytask --my-arg`` would not map back correctly to
``mytask(my_arg=...)``.) Credit: `@akitada`.

0.5.0 (2013.08.16)
==================
Expand Down
5 changes: 5 additions & 0 deletions invoke/cli.py
Expand Up @@ -235,6 +235,11 @@ def dispatch(argv):
for context in tasks:
kwargs = {}
for _, arg in six.iteritems(context.args):
# Use the arg obj's internal name - not what was necessarily given
# on the CLI. (E.g. --my-option vs --my_option for
# mytask(my_option=xxx) requires this.)
# TODO: store 'given' name somewhere in case somebody wants to see
# it when handling args.
kwargs[arg.name] = arg.value
try:
# TODO: allow swapping out of Executor subclasses based on core
Expand Down

0 comments on commit e9021ec

Please sign in to comment.