Skip to content

Commit 8403b1f

Browse files
committed
fix the three dots in catch_all label
1 parent fa24032 commit 8403b1f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

examples/catch_all_advanced/cli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cli_download_usage() {
5555
echo
5656

5757
printf "Usage:\n"
58-
printf " cli download SOURCE [TARGET] [options] [AWS PARAMS]\n"
58+
printf " cli download SOURCE [TARGET] [options] [AWS PARAMS...]\n"
5959
printf " cli download --help | -h\n"
6060
echo
6161

@@ -84,7 +84,7 @@ cli_download_usage() {
8484
echo
8585

8686

87-
echo " AWS PARAMS"
87+
echo " AWS PARAMS..."
8888
printf " Additional arguments or flags for AWS CLI\n"
8989
echo
9090

@@ -276,7 +276,7 @@ cli_download_parse_requirements() {
276276
args[source]=$1
277277
shift
278278
else
279-
printf "missing required argument: SOURCE\nusage: cli download SOURCE [TARGET] [options] [AWS PARAMS]\n"
279+
printf "missing required argument: SOURCE\nusage: cli download SOURCE [TARGET] [options] [AWS PARAMS...]\n"
280280
exit 1
281281
fi
282282
# :command.required_flags_filter

lib/bashly/models/command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def catch_all_label
3333
return nil unless catch_all
3434

3535
if catch_all.is_a? String
36-
catch_all.upcase
36+
"#{catch_all.upcase}..."
3737
elsif catch_all.is_a?(Hash) and catch_all['label'].is_a?(String)
38-
catch_all['label'].upcase
38+
"#{catch_all['label'].upcase}..."
3939
else
4040
"..."
4141
end

spec/approvals/examples/catch_all_advanced

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cli download - Download a file
2323
Shortcut: d
2424

2525
Usage:
26-
cli download SOURCE [TARGET] [options] [AWS PARAMS]
26+
cli download SOURCE [TARGET] [options] [AWS PARAMS...]
2727
cli download --help | -h
2828

2929
Options:
@@ -40,7 +40,7 @@ Arguments:
4040
TARGET
4141
Target filename (default: same as source)
4242

43-
AWS PARAMS
43+
AWS PARAMS...
4444
Additional arguments or flags for AWS CLI
4545

4646
Examples:

spec/bashly/models/command_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
let(:fixture) { :catch_all_string }
7373

7474
it "returns an uppercase version of it" do
75-
expect(subject.catch_all_label).to eq "EXTRA PARAMS"
75+
expect(subject.catch_all_label).to eq "EXTRA PARAMS..."
7676
end
7777
end
7878

7979
context "when catch_all['label'] is a string" do
8080
let(:fixture) { :catch_all_hash }
8181

8282
it "returns an uppercase version of it" do
83-
expect(subject.catch_all_label).to eq "ADDITIONAL PARAMS"
83+
expect(subject.catch_all_label).to eq "ADDITIONAL PARAMS..."
8484
end
8585
end
8686

0 commit comments

Comments
 (0)