Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

--debug for git commands

  • Loading branch information...
commit 9c58229cdf1e6b1cc5f6b1d5ebb2584d35b7b681 1 parent f29ae7c
@cadorn cadorn authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 lib/commands/install.js
  2. +4 −0 lib/commands/update.js
View
4 lib/commands/install.js
@@ -13,6 +13,7 @@ command.option("--dev").bool().help("Install dev dependencies as well.");
command.option("-n", "--now").bool().help("Aggressively fetch latest remote info (equivalent to `sm update`).");
command.option("-N", "--no-native-install").bool().help("Don't call native package installer (if applicable).");
command.option("-v", "--verbose").bool().help("Show verbose progress.");
+command.option("--debug").bool().help("Show debug output.");
command.helpful();
command.action(function (options) {
@@ -25,6 +26,9 @@ command.action(function (options) {
if (options.now) {
options.update = true;
}
+ if (options.debug) {
+ options.verbose = true;
+ }
PM.forProgramPath(basePath).then(function(pm) {
return pm.install(options);
View
4 lib/commands/update.js
@@ -11,6 +11,7 @@ command.arg(".../[package.json|program.json]").optional();
command.arg("DEPENDENCY");
command.option("--cached").bool().help("Update from local cache if available (will not aggressively fetch latest remote info).");
command.option("-v", "--verbose").bool().help("Show verbose progress.");
+command.option("--debug").bool().help("Show debug output.");
command.helpful();
command.action(function (options) {
@@ -24,6 +25,9 @@ command.action(function (options) {
if (options.cached) {
options.now = false;
}
+ if (options.debug) {
+ options.verbose = true;
+ }
PM.forProgramPath(basePath).then(function(pm) {
return pm.update(options);
Please sign in to comment.
Something went wrong with that request. Please try again.