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

fix detection of required arguments #24

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Conversation

dirk-thomas
Copy link
Contributor

Before all arguments were considered required. With this change optional arguments are not counted when the signature length is checked,

This is required for ament/ament_tools#98 (which has already been merged and fails builds without this change).

@wjwwood
Copy link
Member

wjwwood commented Jun 8, 2016

The changes look ok to me, though the "pop-loop" is a bit strange (would a slice operation be more obvious?). Should the tests for this function be extended to cover this case?

https://github.com/osrf/osrf_pycommon/blob/master/tests/unit/test_cli_utils/test_verb_pattern.py#L9-L85

@dirk-thomas
Copy link
Contributor Author

I used slicing instead and added a test for it. Please take another look.

@wjwwood
Copy link
Member

wjwwood commented Jun 8, 2016

lgtm

@dirk-thomas dirk-thomas merged commit 34b6790 into master Jun 8, 2016
@dirk-thomas dirk-thomas deleted the fix_argument_detection branch June 8, 2016 20:08
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