Skip to content

Instantly share code, notes, and snippets.

@gsscoder
Created January 24, 2013 16:57
Show Gist options
  • Save gsscoder/4625084 to your computer and use it in GitHub Desktop.
Save gsscoder/4625084 to your computer and use it in GitHub Desktop.
Command Line Parser, verbs sub options.
class CommitSubOptions
{
[Option('p', "patch",
HelpText = "Use the interactive patch selection interface to chose which changes to commit.")]
public bool Patch { get; set; }
[Option('a', "all",
HelpText = "Tell the command to automatically stage files that have been modified.")]
public bool All { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment