Skip to content

Commit 53a0e6a

Browse files
committed
do not add double dash case unless catch_all is enabled
1 parent 60eb15f commit 53a0e6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/bashly/views/command/parse_requirements_while.gtx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ unless global_flags?
1111
end
1212

1313
>
14+
if catch_all.enabled?
1415
> --)
1516
> shift
1617
> other_args+=("$@")
1718
> break
1819
> ;;
1920
>
20-
> -?*)
21+
end
2122

23+
> -?*)
2224
if catch_all.enabled?
2325
> other_args+=("$1")
2426
> shift

0 commit comments

Comments
 (0)