docopt / docopts

Shell interpreter for docopt, the command-line interface description language.
Other
494 stars 53 forks source link

Use for loop in example with multiple values #73

Open openjck opened 5 months ago

openjck commented 5 months ago

The last example, which uses an argument with multiple values, can be made more terse by using a for loop. I think this is an improvement, but whether others agree is subjective and a matter of style, so I'd understand if this change is not accepted.

Sylvain303 commented 5 months ago

Hello @openjck

Thanks for your contribution... This is very cosmetic change about the doc.

Some parts are imported directly from source code. So I didn't took time to verify the code yet.

Also I don't use the ugly bash fake nested array syntax. So it's probably some legacy code here.

Did you have a look at docopts.sh helper?