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 bug: Let parser match longer argument first #69

Merged
merged 1 commit into from
Jul 24, 2016

Conversation

ace-wu
Copy link
Contributor

@ace-wu ace-wu commented Jul 22, 2016

a quick patch that fix following bug:

http://localhost> --session-read-only test
Syntax error near "--session-"
http://localhost> --auth-type test
Syntax error near "--auth-typ"

after applying the patch:

http://localhost> --session-read-only test
http://localhost> --auth-type test
http://localhost> httpie
http --auth-type test --session-read-only test http://localhost --session-read-only=test

@eliangcs
Copy link
Contributor

@ace-wu thanks a lot for the bugfix! Can you also add a test case for it?

@ace-wu
Copy link
Contributor Author

ace-wu commented Jul 23, 2016

@eliangcs sure! 😸 updated

@eliangcs eliangcs merged commit 7c7d54f into httpie:master Jul 24, 2016
@eliangcs
Copy link
Contributor

Merged. Thanks for your PR 👍

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