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 interlacing arguments and explicit option ending #10

Merged
merged 4 commits into from
Nov 27, 2014
Merged

Add support for interlacing arguments and explicit option ending #10

merged 4 commits into from
Nov 27, 2014

Conversation

uranusjr
Copy link
Contributor

As described in #9.

This commit adds the ability to parse interlaced arguments and options.
For example, the following:

    GBCli foo -o bar --print-settings

will now be parsed as:

    Arguments:
        foo

    Options:
        output         = bar
        print-settings

without needing to place all arguments after options.
@tomaz
Copy link
Owner

tomaz commented Nov 26, 2014

Pull request looks good - great work!

I found an issue with It though: it breaks option groups - see my comment at 7fdf6d5 commit. Quick one line change fixes that, but I didn't test it in combination with interlacing arguments and explicit option ending... Please update and test if it still works with newly added stuff, then I'll be glad to merge!

It's really something that should've been implemented with unit tests, but so far I didn't bother writing them - sorry for that...

@tomaz
Copy link
Owner

tomaz commented Nov 27, 2014

Thanks!

tomaz added a commit that referenced this pull request Nov 27, 2014
Add support for interlacing arguments and explicit option ending
@tomaz tomaz merged commit 54bf02a into tomaz:master Nov 27, 2014
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