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

resolve inconsistent usage of options and answers #152

Merged
merged 2 commits into from Mar 24, 2016
Merged

resolve inconsistent usage of options and answers #152

merged 2 commits into from Mar 24, 2016

Conversation

binduwavell
Copy link
Contributor

added example argument and option registration and updated test to reference these consistently

resolves #151

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.5% when pulling 87ca135 on binduwavell:feature-consistent-options-and-prompts into 7f3aad4 on yeoman:master.

constructor: function () {
yeoman.Base.apply(this, arguments);

// This makes 'arg' an optional argument.
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep the code boilerplate minimal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@SBoudrias can you be more specific?

Copy link
Member

Choose a reason for hiding this comment

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

We should remove a lot of comments and unnecessary lines of code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can easily remove the comments. Which lines are unnecessary? The examples of reading arguments and options? Other stuff too? Technically we don't need to have an option or argument registered at all, could completely remove the constructor... Give me some more direction and I'll make it happen.

@binduwavell
Copy link
Contributor Author

@SBoudrias I'm leaving for vacation tomorrow, so I just backed this back to the most simple thing I could imagine based on your comments. Feel free to adjust however you see fit.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.5% when pulling b3c074b on binduwavell:feature-consistent-options-and-prompts into 7f3aad4 on yeoman:master.

@SBoudrias
Copy link
Member

Oh thanks, sorry I was too busy to come back to this earlier.

That minimal fix seems good to me.

@SBoudrias SBoudrias merged commit d0f6e55 into yeoman:master Mar 24, 2016
@SBoudrias
Copy link
Member

Oh by the way, your commits are not linking back to your github account. Chances are the git email set on the computer from which you sent the PR is not linked to your account.

@binduwavell
Copy link
Contributor Author

Interesting, thanks for the heads up.

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.

inconsistent usage of options and prompts
3 participants