Skip to content

Commit 33a1db3

Browse files
committed
remove fixed flag redundant code
1 parent 6636795 commit 33a1db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bashly/views/command/fixed_flags_filter.gtx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
> case "${1:-}" in
55

66
if root_command?
7-
= short_flag_exist?("-v") ? "--version)".indent(4) : "--version | -v)".indent(4)
7+
= (short_flag_exist?("-v") ? "--version)" : "--version | -v)").indent(4)
88
> version_command
99
> exit
1010
> ;;
1111
>
1212
end
1313

14-
= short_flag_exist?("-h") ? "--help)".indent(4) : "--help | -h)".indent(4)
14+
= (short_flag_exist?("-h") ? "--help)" : "--help | -h)").indent(4)
1515
> long_usage=yes
1616
> <%= function_name %>_usage
1717
> exit

0 commit comments

Comments
 (0)