adishavit / argh

Argh! A minimalist argument handler.
BSD 3-Clause "New" or "Revised" License
1.33k stars 93 forks source link

Multiple Parameters for 1 Argument #45

Closed derens99 closed 2 years ago

derens99 commented 5 years ago

Hello, I'm wondering if this great library has the functionality of entering multiple parameters for 1 argument. An example would be --arrayOf4 1 2 3 4. Then, I could get these 4 numbers and put them into an array. Is this already a feature in this library? If so, could I get a pointer on achieving that goal? Thanks

adishavit commented 5 years ago

Unfortunately that’s not possible. A workaround might be to use: —arrayOf4=1,2,3,4 with no spaces and parse it yourself...

On Thu, 1 Aug 2019 at 15:57 Deren Singh notifications@github.com wrote:

Hello, I'm wondering if this great library has the functionality of entering multiple parameters for 1 argument. An example would be --arrayOf4 1 2 3 4. Then, I could get these 4 numbers and put them into an array. Is this already a feature in this library? If so, could I get a pointer on achieving that goal? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adishavit/argh/issues/45?email_source=notifications&email_token=AAN3CECEQ4NDK3BYYYRYEDTQCLTUBA5CNFSM4IIQ6ZLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HC2S63A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN3CECNFLHPUF4SLFXZFN3QCLTUBANCNFSM4IIQ6ZLA .