We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2c1275 commit 59ff0b5Copy full SHA for 59ff0b5
global-cli/index.js
@@ -54,17 +54,16 @@ var argv = require('minimist')(process.argv.slice(2));
54
*/
55
var commands = argv._;
56
if (commands.length === 0) {
57
+ if (argv.version) {
58
+ console.log('create-react-app version: ' + require('./package.json').version);
59
+ process.exit();
60
+ }
61
console.error(
62
'Usage: create-react-app <project-directory> [--verbose]'
63
);
64
process.exit(1);
65
}
66
-if (argv.version) {
- console.log('create-react-app version: ' + require('./package.json').version);
- process.exit();
-}
67
-
68
createApp(commands[0], argv.verbose, argv['scripts-version']);
69
70
function createApp(name, verbose, version) {
0 commit comments