Skip to content

Commit 5607be4

Browse files
authored
Fix inconsistent naming of CLI arguments on *nix (#63)
1 parent d061d7e commit 5607be4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

assets/nix/run.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,19 @@ doorstop_bool() {
192192
# Read from command line
193193
while :; do
194194
case "$1" in
195-
--doorstop_enabled)
195+
--doorstop_enabled) # For backwards compatibility. Renamed to --doorstop-enabled
196196
enabled="$(doorstop_bool "$2")"
197197
shift
198198
;;
199-
--doorstop_target_assembly)
199+
--doorstop_target_assembly) # For backwards compatibility. Renamed to --doorstop-target-assembly
200+
target_assembly="$2"
201+
shift
202+
;;
203+
--doorstop-enabled)
204+
enabled="$(doorstop_bool "$2")"
205+
shift
206+
;;
207+
--doorstop-target-assembly)
200208
target_assembly="$2"
201209
shift
202210
;;

0 commit comments

Comments
 (0)