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: Long-only flags would not take values #23

Merged
merged 1 commit into from
Nov 1, 2011

Conversation

felixge
Copy link
Contributor

@felixge felixge commented Nov 1, 2011

For '--longflag [value]', '--longflag' was being mistaken for the
short option, and '[value]' as the long option. This patch fixes
this by checking if the second flag argument starts with [ or <
which indicates a value being expected.

For '--longflag [value]', '--longflag' was being mistaken for the
short option, and '[value]' as the long option. This patch fixes
this by checking if the second flag argument starts with [ or <
which indicates a value being expected.
@tj
Copy link
Owner

tj commented Nov 1, 2011

good call haha

tj added a commit that referenced this pull request Nov 1, 2011
Fix: Long-only flags would not take values
@tj tj merged commit 6480233 into tj:master Nov 1, 2011
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