Skip to content

Conversation

@vknabel
Copy link
Contributor

@vknabel vknabel commented Oct 18, 2015

I needed these changes because I wanted --public and --private instead of --no-public.

Copy link
Owner

Choose a reason for hiding this comment

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

After thinking about this for a while, I'd rather call this disabledName and disabledFlag. Would you be able to change the name to this?

Can you keep the old order intact so that the flag is after the original name, as follows:

init(_ name: String, flag: Character? = nil, disabledName: String? = nil, disabledFlag: Character? = nil, description: String? = nil, `default`: Bool = false)

@kylef
Copy link
Owner

kylef commented Oct 31, 2015

Thanks for these changes @valentinknabel, I've had some feedback in the comments but otherwise this looks good.

Would you be able to address these changes and then squash them into one commit and this should be good to merge.

kylef added a commit that referenced this pull request Nov 6, 2015
Added second name and flag parsing as false to Flag
@kylef kylef merged commit d33fbdb into kylef:master Nov 6, 2015
@kylef
Copy link
Owner

kylef commented Nov 6, 2015

Thanks @valentinknabel, I've released this in Commander 0.3.0.

@vknabel
Copy link
Contributor Author

vknabel commented Nov 6, 2015

Thanks @kylef for Commander. :)

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