Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Created January 24, 2013 17:00
Show Gist options
  • Save gsscoder/4625124 to your computer and use it in GitHub Desktop.
Save gsscoder/4625124 to your computer and use it in GitHub Desktop.
Command Line Parser, verbs master options.
class Options
{
public OptionsWithVerbsHelp()
{
CommitVerb = new CommitSubOptionsHelp {Patch = true};
}
[VerbOption("add", HelpText = "Add file contents to the index.")]
public AddSubOptions AddVerb { get; set; }
[VerbOption("commit", HelpText = "Record changes to the repository.")]
public CommitSubOptions CommitVerb { get; set; }
[VerbOption("clone", HelpText = "Clone a repository into a new directory.")]
public CloneSubOptions CloneVerb { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment