Skip to content

Instantly share code, notes, and snippets.

@hns
Created October 20, 2009 06:49
Show Gist options
  • Save hns/214076 to your computer and use it in GitHub Desktop.
Save hns/214076 to your computer and use it in GitHub Desktop.
Parser.addOption("-i", "--init")
.action("set")
.destination("init")
.defaultValue(false)
.type(Boolean)
.help("Init repository if it doesn't exist");
Parser.addOption("-i", "--init", {
action: "set",
destination: "init",
defaultValue: false,
type: Boolean,
help: "Init repository if it doesn't exist"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment