commandlineparser / commandline

The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
MIT License
4.58k stars 478 forks source link

Is it possible to have verbs and common parameters #691

Open vbtrek opened 4 years ago

vbtrek commented 4 years ago

It's quite common to have a standard set of parameters that apply to all verbs when using verbs, eg with tfs the url parameter is required for all verbs. Is there any want to do this with this library?

Crauzer commented 4 years ago

You could create an Interface with all the common parameters you want to have on your commands. And then implement that interface on all Options classes