File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
- Added default value for ` emulators.dataconnect.dataDir ` to ` init dataconnect ` .
2
+ - Fixed an issue where ` firebase ` would error out instead of displaying help text.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import * as fsutils from "../fsutils";
33
33
import * as utils from "../utils" ;
34
34
import * as winston from "winston" ;
35
35
36
- let args = process . argv . slice ( 2 ) ;
36
+ const args = process . argv . slice ( 2 ) ;
37
37
let cmd : CommanderStatic ;
38
38
39
39
function findAvailableLogFile ( ) : string {
@@ -161,11 +161,10 @@ process.on("uncaughtException", (err) => {
161
161
} ) ;
162
162
163
163
if ( ! handlePreviewToggles ( args ) ) {
164
- cmd = client . cli . parse ( process . argv ) ;
165
-
166
- // determine if there are any non-option arguments. if not, display help
167
- args = args . filter ( ( arg ) => ! arg . includes ( "-" ) ) ;
164
+ // determine if there are any arguments. if not, display help
168
165
if ( ! args . length ) {
169
166
client . cli . help ( ) ;
167
+ } else {
168
+ cmd = client . cli . parse ( process . argv ) ;
170
169
}
171
170
}
You can’t perform that action at this time.
0 commit comments