File tree 1 file changed +5
-18
lines changed
packages/create-react-app
1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -143,24 +143,11 @@ if (program.info) {
143
143
. then ( console . log ) ;
144
144
}
145
145
146
- const hasMultipleProjectNameArgs =
147
- process . argv [ 3 ] && ! process . argv [ 3 ] . startsWith ( '-' ) ;
148
- if ( typeof projectName === 'undefined' || hasMultipleProjectNameArgs ) {
149
- console . log ( ) ;
150
- if ( hasMultipleProjectNameArgs ) {
151
- console . error (
152
- `You have provided more than one argument for ${ chalk . green (
153
- '<project-directory>'
154
- ) } .`
155
- ) ;
156
- console . log ( ) ;
157
- console . log ( 'Please specify only one project directory, without spaces.' ) ;
158
- } else {
159
- console . error ( 'Please specify the project directory:' ) ;
160
- console . log (
161
- ` ${ chalk . cyan ( program . name ( ) ) } ${ chalk . green ( '<project-directory>' ) } `
162
- ) ;
163
- }
146
+ if ( typeof projectName === 'undefined' ) {
147
+ console . error ( 'Please specify the project directory:' ) ;
148
+ console . log (
149
+ ` ${ chalk . cyan ( program . name ( ) ) } ${ chalk . green ( '<project-directory>' ) } `
150
+ ) ;
164
151
console . log ( ) ;
165
152
console . log ( 'For example:' ) ;
166
153
console . log ( ` ${ chalk . cyan ( program . name ( ) ) } ${ chalk . green ( 'my-react-app' ) } ` ) ;
You can’t perform that action at this time.
0 commit comments