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

document negative option for boolean option #390

Merged
merged 1 commit into from
Mar 22, 2014

Conversation

developingchris
Copy link
Contributor

Added test and implementation for options that are boolean to document a
--no-option that is equivalent to passing false.

This is to address issue #377

Added test and implementation for options that are boolean to document a
--no-option that is equivalent to passing false.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 2c4f421 on developingchris:boolean_negative into 62593e0 on erikhuda:master.

@@ -85,6 +85,10 @@ def usage(padding = 0)

sample = "[#{sample}]" unless required?

if boolean?
sample << ", [#{dasherize("no-" + human_name)}]" unless name == "force"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip is also a valid prefix. I think we should document it too

@sferik
Copy link
Contributor

sferik commented Mar 22, 2014

Thanks!

sferik added a commit that referenced this pull request Mar 22, 2014
document negative option for boolean option
@sferik sferik merged commit 34a85b7 into rails:master Mar 22, 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.

None yet

4 participants