Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
--install after clone
  • Loading branch information
cadorn committed Apr 29, 2012
1 parent 6ad5044 commit fcd08cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/commands/clone.js
Expand Up @@ -10,17 +10,19 @@ 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");
command.option("--dev").bool().help("Same as --create --write --install");
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.helpful();

command.action(function (options) {

if (options.dev === true) {
options.create = true;
options.write = true;
options.install = true;
}

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

0 comments on commit fcd08cc

Please sign in to comment.