j-maly / CommandLineParser

Command line parser. Declarative arguments support. Rich set of argument types (switches, enums, files, etc...). Mutually exclusive arguments validations.
MIT License
137 stars 30 forks source link

Blank and example output #38

Closed LightTempler closed 7 years ago

LightTempler commented 7 years ago

Many thanks for fast implementation of regex-arguments and full value diplaying! Both work like a charm and help a lot: Whole non auto validation has shrinked to just two lines with!

Two very small issues:

Output of .ShowParsedArguments(true) : Argument: t(IDtags), type: String, occured 2x values: #ID01#ID02

Here values #ID01 and #ID02 seems to be one single string.

Argument 'id2' does not match the regex pattern '#[^ ]+'.

With attribute Example:= "#MyID" set , this could be:

Argument 'id2' does not match the regex pattern '#[^ ]+'. Valid example: #MyID

This could be helpfull, because of maybe not every user of a commandline tool speaks RegEx fluently.