Skip to content

Commit f06a739

Browse files
committed
emulator.sh: add -g shorthand for "-c gradle"
diff --git a/firebase-dataconnect/emulator/emulator.sh b/firebase-dataconnect/emulator/emulator.sh index 7358a82..3efc204 100755 --- a/firebase-dataconnect/emulator/emulator.sh +++ b/firebase-dataconnect/emulator/emulator.sh @@ -37,9 +37,10 @@ function parse_args { local OPTIND=1 local OPTERR=0 - while getopts ":c:p:v:hw" arg ; do + while getopts ":c:p:v:hwg" arg ; do case "$arg" in c) emulator_binary="${OPTARG}" ;; + g) emulator_binary="gradle" ;; p) postgresql_string="${OPTARG}" ;; v) preview_flags="${OPTARG}" ;; w) wipe_and_restart_postgres_pod=1 ;; @@ -107,6 +108,9 @@ function print_help { echo " will use the same CLI as the Gradle build. If not specified, or if specified " echo " as the empty string, then the emulator binary is downloaded." echo + echo " -g" + echo " Shorthand for: -c gradle" + echo echo " -p <postgresql_connection_string>" echo " Uses the given string to connect to the PostgreSQL server. If not specified " echo " the the default value of \"${DEFAULT_POSTGRESQL_STRING}\" is used."
1 parent c6739c0 commit f06a739

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

firebase-dataconnect/emulator/emulator.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ function parse_args {
3737

3838
local OPTIND=1
3939
local OPTERR=0
40-
while getopts ":c:p:v:hw" arg ; do
40+
while getopts ":c:p:v:hwg" arg ; do
4141
case "$arg" in
4242
c) emulator_binary="${OPTARG}" ;;
43+
g) emulator_binary="gradle" ;;
4344
p) postgresql_string="${OPTARG}" ;;
4445
v) preview_flags="${OPTARG}" ;;
4546
w) wipe_and_restart_postgres_pod=1 ;;
@@ -107,6 +108,9 @@ function print_help {
107108
echo " will use the same CLI as the Gradle build. If not specified, or if specified "
108109
echo " as the empty string, then the emulator binary is downloaded."
109110
echo
111+
echo " -g"
112+
echo " Shorthand for: -c gradle"
113+
echo
110114
echo " -p <postgresql_connection_string>"
111115
echo " Uses the given string to connect to the PostgreSQL server. If not specified "
112116
echo " the the default value of \"${DEFAULT_POSTGRESQL_STRING}\" is used."

0 commit comments

Comments
 (0)