Skip to content

Commit

Permalink
fix(@angular/cli): Show non-schematic options with help
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Oct 30, 2017
1 parent f511e28 commit 78d0234
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@angular/cli/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SchematicAvailableOptions } from '../tasks/schematic-get-options';
const Command = require('../ember-cli/lib/models/command');
const SilentError = require('silent-error');

const { cyan, grey, yellow } = chalk;
const { cyan, yellow } = chalk;
const separatorRegEx = /[\/\\]/g;


Expand Down Expand Up @@ -199,7 +199,8 @@ export default Command.extend({
});
return getHelpOutputTask.run({
schematicName,
collectionName
collectionName,
nonSchematicOptions: this.availableOptions.filter((o: any) => !o.hidden)
})
.then((output: string[]) => {
return [
Expand Down

0 comments on commit 78d0234

Please sign in to comment.