SamuelSchlesinger / commander-cli

A simple library I wrote to allow me to quickly and easily construct command line interfaces.
MIT License
29 stars 2 forks source link

multiple arguments #23

Closed BebeSparkelSparkel closed 3 years ago

BebeSparkelSparkel commented 3 years ago

Many commands have the ability to take multiple arguments like rm and cp.

rm [-dfiPRrv] file ...
cp [-afipv] [-R [-H | -L | -P]] source ... directory

rm is the easy case but cp is a bit more difficult to parse because it must not consume the last argument directory.

SamuelSchlesinger commented 3 years ago

Yeah, this is a great idea. I'd take a PR for this, or will perhaps tackle it on my own at some point.

BebeSparkelSparkel commented 3 years ago

already have PR for theis #30

SamuelSchlesinger commented 3 years ago

Too big for me to review and merge comfortably.