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

Added missing comma to fix '-v' and '--version' options #9

Merged
merged 1 commit into from
Dec 19, 2013
Merged

Added missing comma to fix '-v' and '--version' options #9

merged 1 commit into from
Dec 19, 2013

Conversation

alanwsmith
Copy link
Contributor

A comma was missing in the options parser that caused the '-v' and '--version' options to fail when using Mercenary. The "--version" option would fail with something like:

$ mercenary_example --version
mercenary_example: version unknown

And the '-v' version would fail with something like:

.../gems/mercenary-0.2.0/lib/mercenary/program.rb:45:in `go': missing argument: -v (OptionParser::MissingArgument)

Adding the comma fixes both issues so that both '-v' and '--version' work as expected.

@parkr
Copy link
Member

parkr commented Dec 19, 2013

Great! Thanks.

@parkr parkr merged commit 0f9e54a into jekyll:master Dec 19, 2013
parkr added a commit that referenced this pull request Dec 19, 2013
@alanwsmith alanwsmith deleted the fix-version-option-flag branch December 21, 2013 01:47
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