From 58732a88b629b40b2d223a76fac46ecee5ae7295 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 e2f78eb9dc0..e53356220d9 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:')}`,