Skip to content

Commit

Permalink
display help after clone
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Apr 30, 2012
1 parent 875371f commit 2743d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/commands/clone.js
Expand Up @@ -10,11 +10,12 @@ var command = exports["clone"] = new ARGS_PARSER();
command.help("Clone a package/program from a URI.");
command.arg("URI");
command.arg("TARGET_PATH");
command.option("--dev").bool().help("Same as --create --write --install");
command.option("--dev").bool().help("Same as --create --write --install --help");
command.option("-c", "--create").bool().help("Create parent path `dirname(TARGET_PATH)` of `TARGET_PATH` if it does not exist.");
command.option("-d", "--delete").bool().help("Delete `TARGET_PATH` if it already exists.");
command.option("-w", "--write").bool().help("Clone in write mode.");
command.option("-i", "--install").bool().help("Install after cloning.");
command.option("-h", "--help").bool().help("Display package/program help when done.");
command.helpful();

command.action(function (options) {
Expand All @@ -23,6 +24,7 @@ command.action(function (options) {
options.create = true;
options.write = true;
options.install = true;
options.help = true;
}

options.locator = options.args[0];
Expand Down

0 comments on commit 2743d89

Please sign in to comment.