Skip to content

Commit 094e658

Browse files
authored
Merge branch 'master' into apphosting-emulator/use-start-command
2 parents 1c13012 + 6366115 commit 094e658

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
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.

src/bin/firebase.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import * as fsutils from "../fsutils";
3333
import * as utils from "../utils";
3434
import * as winston from "winston";
3535

36-
let args = process.argv.slice(2);
36+
const args = process.argv.slice(2);
3737
let cmd: CommanderStatic;
3838

3939
function findAvailableLogFile(): string {
@@ -161,11 +161,10 @@ process.on("uncaughtException", (err) => {
161161
});
162162

163163
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
168165
if (!args.length) {
169166
client.cli.help();
167+
} else {
168+
cmd = client.cli.parse(process.argv);
170169
}
171170
}

0 commit comments

Comments
 (0)