You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by om...@apache.org on 2016/05/13 18:41:22 UTC

cordova-cli git commit: CB-11263: 'cordova telemetry help' should display help text

Repository: cordova-cli
Updated Branches:
  refs/heads/master 89ce10cb7 -> 0b635ef34


CB-11263: 'cordova telemetry help' should display help text

 This closes #252


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/0b635ef3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/0b635ef3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/0b635ef3

Branch: refs/heads/master
Commit: 0b635ef340c294dff243cf746130e27b1809db4a
Parents: 89ce10c
Author: Omar Mefire <om...@gmail.com>
Authored: Fri May 13 10:32:24 2016 -0700
Committer: Omar Mefire <om...@gmail.com>
Committed: Fri May 13 11:40:37 2016 -0700

----------------------------------------------------------------------
 src/cli.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0b635ef3/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 91b918f..5d437b0 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -158,6 +158,12 @@ module.exports = function (inputArgs, cb) {
 };
 
 function handleTelemetryCmd(subcommand, isOptedIn) {
+    
+    if (subcommand !== 'on' && subcommand !== 'off') {
+        logger.subscribe(events);
+        return help(['telemetry']);
+    }
+    
     var turnOn = subcommand === 'on' ? true : false;
     var cmdSuccess = true;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org