Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for square bracket shorthand lists #788

Merged
merged 2 commits into from
May 23, 2014

Conversation

danielgtaylor
Copy link
Contributor

Adds support for a new shorthand list syntax. See examples in test_utils.py.

@jamesls please review.

@@ -245,7 +245,7 @@ def _list_scalar_list_parse(self, param, value):
current_value = unpack_scalar_cli_arg(args[current_key],
current[1].strip())
if args[current_key].type == 'list':
current_parsed[current_key] = [current_value]
current_parsed[current_key] = current_value.split(',')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to add a test for this too, to verify we actually parse the final shorthand value into a list.

@jamesls
Copy link
Member

jamesls commented May 23, 2014

Looks good, just would like a test for the shorthand change.

@jamesls
Copy link
Member

jamesls commented May 23, 2014

:shipit: Looks good.

danielgtaylor added a commit that referenced this pull request May 23, 2014
Add support for square bracket shorthand lists. Fixes #788.
@danielgtaylor danielgtaylor merged commit 8485e91 into aws:develop May 23, 2014
@danielgtaylor danielgtaylor deleted the square-brackets branch May 23, 2014 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants