@@ -5,26 +5,26 @@ const createLibrary = require('./lib');
5
5
const pkg = require ( './package.json' ) ;
6
6
7
7
program . version ( pkg . version )
8
- . usage ( '[options] <file ... >' )
8
+ . usage ( '[options] <name >' )
9
9
. option ( '-p, --prefix <prefix>' ,
10
- 'The prefix for the library (Default: RN )' )
10
+ 'The prefix for the library (Default: `RN` )' )
11
11
. option ( '--module-prefix <modulePrefix>' ,
12
- 'The module prefix for the library (Default: react-native)' )
12
+ 'The module prefix for the library (Default: ` react-native` )' )
13
13
. 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` )' )
15
15
. option ( '--namespace <namespace>' ,
16
- 'The namespace for the Windows module' +
16
+ '(Windows only!) The namespace for the Windows module\n ' +
17
17
' (Default: The package identifier as PascalCase, which is `Com.Reactlibrary`)' )
18
18
. 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`) ' )
20
20
. parse ( process . argv ) ;
21
21
22
22
const name = program . args [ 0 ] ;
23
23
const prefix = program . prefix ;
24
24
const modulePrefix = program . modulePrefix ;
25
25
const packageIdentifier = program . packageIdentifier ;
26
26
const namespace = program . namespace ;
27
- const platforms = ( program . platforms || '' ) . split ( ',' ) ;
27
+ const platforms = ( program . platforms ) ? program . platforms . split ( ',' ) : program . platforms ;
28
28
29
29
const beforeCreation = Date . now ( ) ;
30
30
createLibrary ( {
0 commit comments