Skip to content

Commit b825ad8

Browse files
committed
- Show --help and --version last in Options list
1 parent 9c10053 commit b825ad8

File tree

43 files changed

+183
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+183
-183
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ gem 'byebug'
44
gem 'lp'
55
gem 'rspec'
66
gem 'rspec_approvals'
7-
gem 'runfile', '>= 1.0.0.rc4', require: false
8-
gem 'runfile-tasks', '>= 1.0.0.rc2', require: false
7+
gem 'runfile', '~> 1.0', require: false
8+
gem 'runfile-tasks', '~> 1.0', require: false
99
gem 'simplecov'
1010

1111
gemspec

examples/catch-all-advanced/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ Usage:
9494
cli download --help | -h
9595
9696
Options:
97-
--help, -h
98-
Show this help
99-
10097
--force, -f
10198
Overwrite existing files
10299
100+
--help, -h
101+
Show this help
102+
103103
Arguments:
104104
SOURCE
105105
URL to download from

examples/catch-all-stdin/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ Usage:
7979
cli --version | -v
8080
8181
Options:
82+
--format, -f FORMAT
83+
Specify file format
84+
Allowed: csv, json
85+
Default: json
86+
8287
--help, -h
8388
Show this help
8489
8590
--version, -v
8691
Show version number
8792
88-
--format, -f FORMAT
89-
Specify file format
90-
Allowed: csv, json
91-
Default: json
92-
9393
Arguments:
9494
FILE...
9595
Path to one or more files. Reads from stdin if empty or "-".

examples/catch-all/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ Usage:
5757
download --version | -v
5858
5959
Options:
60+
--debug, -d
61+
62+
6063
--help, -h
6164
Show this help
6265
6366
--version, -v
6467
Show version number
6568
66-
--debug, -d
67-
68-
6969
Arguments:
7070
MESSAGE
7171
Message

examples/colors-usage/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ Usage:
160160
cli download --help | -h
161161

162162
Options:
163-
--help, -h
164-
Show this help
165-
166163
--force, -f
167164
Overwrite existing files
168165

166+
--help, -h
167+
Show this help
168+
169169
Arguments:
170170
SOURCE
171171
URL to download from

examples/command-examples/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ Usage:
8989
cli download --help | -h
9090
9191
Options:
92-
--help, -h
93-
Show this help
94-
9592
--force, -f
9693
Overwrite existing files
9794
95+
--help, -h
96+
Show this help
97+
9898
Arguments:
9999
SOURCE
100100
URL to download from
@@ -122,15 +122,15 @@ Usage:
122122
cli upload --help | -h
123123
124124
Options:
125-
--help, -h
126-
Show this help
127-
128125
--user, -u USER (required)
129126
Username to use for logging in
130127
131128
--password, -p PASSWORD
132129
Password to use for logging in
133130
131+
--help, -h
132+
Show this help
133+
134134
Arguments:
135135
SOURCE
136136
File to upload

examples/commands/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ Usage:
140140
cli download --help | -h
141141
142142
Options:
143-
--help, -h
144-
Show this help
145-
146143
--force, -f
147144
Overwrite existing files
148145
146+
--help, -h
147+
Show this help
148+
149149
Arguments:
150150
SOURCE
151151
URL to download from
@@ -200,15 +200,15 @@ Usage:
200200
cli upload --help | -h
201201
202202
Options:
203-
--help, -h
204-
Show this help
205-
206203
--user, -u USER (required)
207204
Username to use for logging in
208205
209206
--password, -p PASSWORD
210207
Password to use for logging in
211208
209+
--help, -h
210+
Show this help
211+
212212
Arguments:
213213
SOURCE
214214
File to upload

examples/conflicts/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ Usage:
4949
download --version | -v
5050
5151
Options:
52-
--help, -h
53-
Show this help
54-
55-
--version, -v
56-
Show version number
57-
5852
--cache
5953
Enable cache
6054
@@ -64,6 +58,12 @@ Options:
6458
--fast
6559
Run faster
6660
61+
--help, -h
62+
Show this help
63+
64+
--version, -v
65+
Show version number
66+
6767
6868
6969
```

examples/custom-strings/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ download - Sample minimal application with custom strings
8686
download --version | -v
8787
8888
== Options ==
89+
--out, -o DIR (required)
90+
Target directory
91+
8992
--help, -h
9093
Show this helpful help
9194
9295
--version, -v
9396
Show version number
9497
95-
--out, -o DIR (required)
96-
Target directory
97-
9898
== Arguments ==
9999
SOURCE
100100
URL to download from

examples/default-values/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ Usage:
6969
convert --version | -v
7070
7171
Options:
72+
--format, -f FORMAT
73+
Format to convert to
74+
Default: png
75+
7276
--help, -h
7377
Show this help
7478
7579
--version, -v
7680
Show version number
7781
78-
--format, -f FORMAT
79-
Format to convert to
80-
Default: png
81-
8282
Arguments:
8383
SOURCE
8484
Files to convert

0 commit comments

Comments
 (0)