Skip to content

Commit

Permalink
Remove undefined value on init cli command (#22045)
Browse files Browse the repository at this point in the history
Summary:
Fixes `undefined` description message when running `react-native init --help` on an existing React Native project.
Pull Request resolved: #22045

Differential Revision: D12878956

Pulled By: TheSavior

fbshipit-source-id: ede329ca88a02013a6c2f75f1b762d89eacdb34f
  • Loading branch information
ignacioola authored and facebook-github-bot committed Nov 1, 2018
1 parent b3b6749 commit 58732a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cli/cliEntry.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function printHelpInformation() {
let output = [ let output = [
'', '',
chalk.bold(chalk.cyan(` react-native ${cmdName} ${this.usage()}`)), chalk.bold(chalk.cyan(` react-native ${cmdName} ${this.usage()}`)),
` ${this._description}`, this._description ? ` ${this._description}` : '',
'', '',
...sourceInformation, ...sourceInformation,
` ${chalk.bold('Options:')}`, ` ${chalk.bold('Options:')}`,
Expand Down

0 comments on commit 58732a8

Please sign in to comment.