File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
examples/catch_all_advanced Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ cli download - Download a file
2323Shortcut: d
2424
2525Usage:
26- cli download SOURCE [TARGET] [options] [AWS PARAMS]
26+ cli download SOURCE [TARGET] [options] [AWS PARAMS... ]
2727 cli download --help | -h
2828
2929Options:
@@ -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
4646Examples:
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments