File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ version_flag_text: Show version number
2727
2828# Error messages
2929flag_requires_an_argument : " %{name} requires an argument: %{usage}"
30- flag_requires_another : " %{name} requires %{need}"
30+ flag_needs_another : " %{name} needs %{need}"
3131invalid_argument : " invalid argument: %s"
3232invalid_flag : " invalid option: %s"
3333invalid_command : " invalid command: %s"
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ if needs
44
55 if needs.count == 1
66 > if [[ -n ${args['{{ name }}']+x} ]] && [[ -z "${args[{{ needs.first }}]:-}" ]]; then
7- > printf "%s\n" "{{ strings[:flag_requires_another ] % { name: name, need: needs.first } }}" >&2
7+ > printf "%s\n" "{{ strings[:flag_needs_another ] % { name: name, need: needs.first } }}" >&2
88 > exit 1
99 > fi
1010 >
1111 else
1212 > if [[ -n ${args['{{ name }}']+x} ]]; then
1313 > for need in {{ needs.join ' ' }}; do
1414 > if [[ -z "${args[$need]:-}" ]]; then
15- > printf "%s\n" "{{ strings[:flag_requires_another ] % { name: name, need: "$need" } }}" >&2
15+ > printf "%s\n" "{{ strings[:flag_needs_another ] % { name: name, need: "$need" } }}" >&2
1616 > exit 1
1717 > fi
1818 > done
Original file line number Diff line number Diff line change 137137 "minLength" : 1 ,
138138 "default" : " %{name} requires an argument: %{usage}"
139139 },
140- "flag_requires_another " : {
141- "title" : " flag requires another flag" ,
140+ "flag_needs_another " : {
141+ "title" : " flag needs another flag" ,
142142 "description" : " The error message template for missing flag needs\n https://bashly.dannyb.co/advanced/strings/#custom-strings" ,
143143 "type" : " string" ,
144144 "minLength" : 1 ,
145- "default" : " %{name} requires %{need}"
145+ "default" : " %{name} needs %{need}"
146146 },
147147 "invalid_argument" : {
148148 "title" : " invalid argument" ,
You can’t perform that action at this time.
0 commit comments