Created
January 24, 2013 17:00
-
-
Save gsscoder/4625124 to your computer and use it in GitHub Desktop.
Command Line Parser, verbs master options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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