File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11- 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";
3333import * as utils from "../utils" ;
3434import * as winston from "winston" ;
3535
36- let args = process . argv . slice ( 2 ) ;
36+ const args = process . argv . slice ( 2 ) ;
3737let cmd : CommanderStatic ;
3838
3939function findAvailableLogFile ( ) : string {
@@ -161,11 +161,10 @@ process.on("uncaughtException", (err) => {
161161} ) ;
162162
163163if ( ! 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
168165 if ( ! args . length ) {
169166 client . cli . help ( ) ;
167+ } else {
168+ cmd = client . cli . parse ( process . argv ) ;
170169 }
171170}
You can’t perform that action at this time.
0 commit comments