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

New help #8255

Merged
merged 3 commits into from Nov 1, 2017
Merged

New help #8255

merged 3 commits into from Nov 1, 2017

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Oct 30, 2017

No description provided.

Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

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

1 comment.

.then(([availableOptions, nonSchematicOptions]: [SchematicAvailableOptions[], any[]]) => {
const output: string[] = [];
[...(nonSchematicOptions || []), ...availableOptions]
.filter(opt => opt.name !== 'name')
Copy link
Contributor

Choose a reason for hiding this comment

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

since there's no way on the command line to specify anything other than string, boolean,s and numbers, you should filter anything else too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that means that things like --spec would not be reflected with help, and I don't agree. I filtered out name as it is an argument and not an option.

@@ -67,7 +67,9 @@ const HelpCommand = Command.extend({
if (commandOptions.short) {
this.ui.writeLine(command.printShortHelp(commandOptions));
} else if (command.printDetailedHelp(commandOptions, rawArgs)) {
this.ui.writeLine('cool');
Copy link
Contributor

Choose a reason for hiding this comment

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

?

const result = command.printDetailedHelp(commandOptions, rawArgs);
this.ui.writeLine('not cool', result);
Copy link
Contributor

Choose a reason for hiding this comment

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

??

@hansl hansl merged commit f4326ad into angular:master Nov 1, 2017
@Brocco Brocco deleted the new-help branch April 3, 2018 13:13
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants