@@ -208,53 +208,57 @@ Parsing of command-line arguments is performed sequentially. So long as
208208option-processing is enabled, each not-yet-processed command-line argument that
209209starts with a hyphen (` - ` ) is treated as an option.
210210
211- ### Option Syntaxes
211+ ### Short Options
212212
213- - Short options start with a single hyphen. If the option takes an argument, the
214- argument can either be appended:
213+ Short options start with a single hyphen. If the option takes an argument, the
214+ argument can either be appended:
215215
216- ``` bash
217- # "-o" with argument "ARGUMENT"
218- my_program -oARGUMENT
219- ```
216+ ``` bash
217+ # "-o" with argument "ARGUMENT"
218+ my_program -oARGUMENT
219+ ```
220220
221- or can be the following command-line argument:
221+ or can be the following command-line argument:
222222
223- ``` bash
224- # "-o" with argument "ARGUMENT"
225- my_program -o ARGUMENT
226- ```
223+ ``` bash
224+ # "-o" with argument "ARGUMENT"
225+ my_program -o ARGUMENT
226+ ```
227227
228- Zero argument short options can also be appended to each other without
229- intermediate hyphens:
228+ Zero argument short options can also be appended to each other without
229+ intermediate hyphens:
230230
231- ``` bash
232- # "-x", "-y" and "-z" options
233- my_program -xyz
234- ```
231+ ``` bash
232+ # "-x", "-y" and "-z" options
233+ my_program -xyz
234+ ```
235235
236- An option that accepts arguments is also allowed at the end of such a chain:
236+ An option that accepts arguments is also allowed at the end of such a chain:
237237
238- ``` bash
239- # "-x", "-y" and "-z" options, with argument for "-z"
240- my_program -xyzARGUMENT
241- ```
238+ ``` bash
239+ # "-x", "-y" and "-z" options, with argument for "-z"
240+ my_program -xyzARGUMENT
241+ ```
242242
243- - Long options start with a double hyphen (` -- ` ). An argument to a long option
244- can
245- either be delimited with an equal sign:
243+ ### Long Options
246244
247- ``` bash
248- # "--foo" with argument "ARGUMENT"
249- my_program --foo=ARGUMENT
250- ```
245+ Long options start with a double hyphen (` -- ` ). An argument to a long option
246+ can
247+ either be delimited with an equal sign (` = ` ):
251248
252- or can be the following command-line argument:
249+ ``` bash
250+ # "--foo" with argument "ARGUMENT"
251+ my_program --foo=ARGUMENT
252+ ```
253253
254- ``` bash
255- # "--foo" with argument "ARGUMENT"
256- my_program --foo ARGUMENT
257- ```
254+ or can be the following command-line argument:
255+
256+ ``` bash
257+ # "--foo" with argument "ARGUMENT"
258+ my_program --foo ARGUMENT
259+ ```
260+
261+ ### Multi-argument Options
258262
259263Multi-argument options are supported, though not by any of the convenience
260264methods. Option-arguments after the first must be separate command-line
0 commit comments