huntzhan / clidoc

Prove Of Conecept Fork Of Docopt.
MIT License
7 stars 1 forks source link

Fully Support Guideline 8. #52

Closed huntzhan closed 9 years ago

huntzhan commented 9 years ago

Guideline 8: When multiple option-arguments are specified to follow a single option, they should be presented as a single argument, using characters within that argument or characters within that argument to separate them.

plan

After successfully match all input arguments, check the list of string list outcome. If:

1. the list contains a single element.(processing the last element instead)

  1. such element contains comma.

then the element would be split to several comma separated elements.

Also, add a flag to suppress above behaviour.