Skip to content

Commit 43856f5

Browse files
committed
Update typos in command-line app
1 parent c9ae123 commit 43856f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cli.js

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ const createLibrary = require('./lib');
55
const pkg = require('./package.json');
66

77
program.version(pkg.version)
8-
.usage('[options] <file ...>')
8+
.usage('[options] <name>')
99
.option('-p, --prefix <prefix>',
10-
'The prefix for the library (Default: RN)')
10+
'The prefix for the library (Default: `RN`)')
1111
.option('--module-prefix <modulePrefix>',
12-
'The module prefix for the library (Default: react-native)')
12+
'The module prefix for the library (Default: `react-native`)')
1313
.option('--package-identifier <packageIdentifier>',
14-
'The package name for the Android module (Default: com.reactlibrary)')
14+
'(Android only!) The package name for the Android module (Default: `com.reactlibrary`)')
1515
.option('--namespace <namespace>',
16-
'The namespace for the Windows module' +
16+
'(Windows only!) The namespace for the Windows module\n' +
1717
' (Default: The package identifier as PascalCase, which is `Com.Reactlibrary`)')
1818
.option('--platforms <platforms>',
19-
'Platforms the library will be created for. (comma separated; default: ios,android,windows')
19+
'Platforms the library will be created for. (comma separated; default: `ios,android,windows`)')
2020
.parse(process.argv);
2121

2222
const name = program.args[0];
2323
const prefix = program.prefix;
2424
const modulePrefix = program.modulePrefix;
2525
const packageIdentifier = program.packageIdentifier;
2626
const namespace = program.namespace;
27-
const platforms = (program.platforms || '').split(',');
27+
const platforms = (program.platforms) ? program.platforms.split(',') : program.platforms;
2828

2929
const beforeCreation = Date.now();
3030
createLibrary({

0 commit comments

Comments
 (0)