File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 11# :flag.case
22<%= aliases.join " | " %> )
3- % if conflicts
4- for conflicts in <%= conflicts.join ' ' %> ; do
5- if [[ -n "${args[$conflicts]:-}" ]]; then
6- printf "<%= strings[:conflicting_flags] %> \n" "$key" "$conflicts"
7- exit 1
8- fi
9- done
10-
11- % end
3+ <%= render(:conflicts).indent 2 %>
124% if arg
135 if [[ -n ${2+x} ]]; then
146<%= render(:validations).indent 4 %>
Original file line number Diff line number Diff line change 1+ # :flag.conflicts
2+ % if conflicts
3+ % if conflicts.count == 1
4+ if [[ -n "${args[<%= conflicts.first %> ]:-}" ]]; then
5+ printf "<%= strings[:conflicting_flags] %> \n" "$key" "<%= conflicts.first %> "
6+ exit 1
7+ fi
8+
9+ % else
10+ for conflict in <%= conflicts.join ' ' %> ; do
11+ if [[ -n "${args[$conflict]:-}" ]]; then
12+ printf "<%= strings[:conflicting_flags] %> \n" "$key" "$conflict"
13+ exit 1
14+ fi
15+ done
16+
17+ % end
18+ % end
You can’t perform that action at this time.
0 commit comments