Skip to content

Commit

Permalink
rework git read/write uris
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Oct 19, 2012
1 parent 47aabc7 commit f63fa2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/commands/clone.js
Expand Up @@ -10,18 +10,16 @@ var command = exports["clone"] = new ARGS_PARSER();
command.help("Clone a package/program from a URI."); command.help("Clone a package/program from a URI.");
command.arg("URI"); command.arg("URI");
command.arg("TARGET_PATH"); command.arg("TARGET_PATH");
command.option("--dev").bool().help("Same as --create --write --install"); command.option("--dev").bool().help("Same as --create --install");
command.option("-c", "--create").bool().help("Create parent path `dirname(TARGET_PATH)` of `TARGET_PATH` if it does not exist."); command.option("-c", "--create").bool().help("Create parent path `dirname(TARGET_PATH)` of `TARGET_PATH` if it does not exist.");
command.option("--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("-i", "--install").bool().help("Install after cloning.");
command.option("--delete").bool().help("Delete `TARGET_PATH` if it already exists.");
command.helpful(); command.helpful();


command.action(function (options) { command.action(function (options) {


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


Expand Down

0 comments on commit f63fa2e

Please sign in to comment.