From 6d436a4fa040ff8028f4b26c0dec059141d221d4 Mon Sep 17 00:00:00 2001 From: Ignacio Olaciregui Date: Wed, 31 Oct 2018 21:10:19 -0700 Subject: [PATCH] Remove undefined value on init cli command (#22045) Summary: Fixes `undefined` description message when running `react-native init --help` on an existing React Native project. Pull Request resolved: https://github.com/facebook/react-native/pull/22045 Differential Revision: D12878956 Pulled By: TheSavior fbshipit-source-id: ede329ca88a02013a6c2f75f1b762d89eacdb34f --- local-cli/cliEntry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/cliEntry.js b/local-cli/cliEntry.js index 6de3fef6039..857ffadfb76 100644 --- a/local-cli/cliEntry.js +++ b/local-cli/cliEntry.js @@ -60,7 +60,7 @@ function printHelpInformation() { let output = [ '', chalk.bold(chalk.cyan(` react-native ${cmdName} ${this.usage()}`)), - ` ${this._description}`, + this._description ? ` ${this._description}` : '', '', ...sourceInformation, ` ${chalk.bold('Options:')}`,