We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0696ca4 commit 621a151Copy full SHA for 621a151
lib/bashly/views/command/normalize_input.gtx
@@ -1,11 +1,13 @@
1
= view_marker
2
3
> normalize_input() {
4
-> local arg flags
+> local arg flags passthru
5
>
6
> while [[ $# -gt 0 ]]; do
7
> arg="$1"
8
-> if [[ $arg =~ ^(--[a-zA-Z0-9_\-]+)=(.+)$ ]]; then
+> if [[ $passthru == true ]]; then
9
+> input+=("$arg")
10
+> elif [[ $arg =~ ^(--[a-zA-Z0-9_\-]+)=(.+)$ ]]; then
11
> input+=("${BASH_REMATCH[1]}")
12
> input+=("${BASH_REMATCH[2]}")
13
> elif [[ $arg =~ ^(-[a-zA-Z0-9])=(.+)$ ]]; then
@@ -20,6 +22,9 @@ if Settings.compact_short_flags
20
22
> done
21
23
end
24
25
+> elif [[ "$arg" == "--" ]]; then
26
+> passthru=true
27
28
> else
29
> input+=("$arg")
30
> fi
0 commit comments