Skip to content

Commit 39aef95

Browse files
sumitarorafilipesilva
authored andcommitted
fix(@angular/cli): fixing new help issue
Close angular#5694
1 parent 4563ec5 commit 39aef95

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • packages/@angular/cli/commands

packages/@angular/cli/commands/new.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
3+
import * as chalk from 'chalk';
34
import denodeify = require('denodeify');
45

56
import InitCommand from './init';
@@ -15,7 +16,7 @@ const mkdir = denodeify(fs.mkdir);
1516

1617
const NewCommand = Command.extend({
1718
name: 'new',
18-
description: `Creates a new directory and a new Angular app.`,
19+
description: `Creates a new directory and a new Angular app eg. "ng new [name]".`,
1920
works: 'outsideProject',
2021

2122
availableOptions: [
@@ -125,7 +126,8 @@ const NewCommand = Command.extend({
125126

126127
if (!packageName) {
127128
return Promise.reject(new SilentError(
128-
`The "ng ${this.name}" command requires a name argument to be specified. ` +
129+
`The "ng ${this.name}" command requires a name argument to be specified eg. ` +
130+
chalk.yellow('ng new [name] ') +
129131
`For more details, use "ng help".`));
130132
}
131133

0 commit comments

Comments
 (0)