Skip to content

Commit 415be68

Browse files
authored
Merge pull request #191 from xofbd/fix-duplicate-word
Fix repeated word typos
2 parents 8e19a11 + 945e64d commit 415be68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/guide.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,21 @@ Optional arguments
190190

191191
ARG_OPTIONAL_SINGLE([argument-name-long], [argument-name-short (optional)], [help message (optional)], [default (optional)])
192192

193-
The default default is an empty string.
193+
Unless specified otherwise, ``default`` is an empty string.
194194

195195
* Boolean optional arguments:
196196
::
197197

198198
ARG_OPTIONAL_BOOLEAN([argument-name-long], [argument-name-short (optional)], [help message (optional)], [default (optional)])
199199

200-
The default default is ``off`` (the only alternative is ``on``).
200+
Unless specified otherwise, ``default`` is set to ``off`` (the only alternative is ``on``).
201201

202202
* Incremental optional arguments:
203203
::
204204

205205
ARG_OPTIONAL_INCREMENTAL([argument-name-long], [argument-name-short (optional)], [help message (optional)], [default (optional)])
206206

207-
The default default is 0.
207+
Unless specified otherwise, ``default`` is set to 0.
208208
The argument accepts no values on command-line, but it tracks a numerical value internally.
209209
That one increases with every argument occurrence.
210210

@@ -213,7 +213,7 @@ Optional arguments
213213

214214
ARG_OPTIONAL_REPEATED([argument-name-long], [argument-name-short (optional)], [help message (optional)], [default (optional)])
215215

216-
The default default is an empty array.
216+
Unless specified otherwise, ``default`` is an empty array.
217217
The argument can be repeated multiple times, but instead of the later specifications overriding earlier ones (s.a. ``ARG_OPTIONAL_SINGLE`` does), arguments are gradually appended to an array.
218218
The form of the default is what you normally put between the brackets when you create ``bash`` arrays, so put whitespace-separated values in there, for example:
219219

@@ -293,7 +293,7 @@ Special arguments
293293

294294
ARG_VERBOSE([short arg name])
295295

296-
Default default is 0, so you can use a ``test $_arg_verbose -ge 1`` pattern in your script.
296+
Starting value is 0, so you can use a ``test $_arg_verbose -ge 1`` pattern in your script.
297297

298298
* Collect leftovers:
299299
::

0 commit comments

Comments
 (0)