commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Add examples that I wish were there

Open ben-biddington opened this issue 6 years ago • 1 comments

I wish this style of usage example was already around somewhere, or easier to find if they are!

These ones show how to:

  • parse options and get result without having to use WithParsed
  • make options that accept multiple values.

I tried to make these as clear as possible, in the hope they may be understood by reading just the one file.

I realise there is duplication here, but perhaps it is worth it in cases like this. (The duplication is bound to public interface members that are very stable.)

ben-biddington avatar Jun 27 '19 21:06 ben-biddington

This was very helpful to me - it seems this multiple values feature is undocumented apart from this example, so I think it should be merged. Thanks @ben-biddington !

ChrisUnityArto avatar Feb 02 '22 10:02 ChrisUnityArto