Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 441B311886 for ; Mon, 9 Jun 2014 02:55:02 +0000 (UTC) Received: (qmail 84452 invoked by uid 500); 9 Jun 2014 02:55:01 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 84359 invoked by uid 500); 9 Jun 2014 02:55:01 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 84008 invoked by uid 99); 9 Jun 2014 02:55:01 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 02:55:01 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9387D8B2348; Mon, 9 Jun 2014 02:55:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: commits@cordova.apache.org Date: Mon, 09 Jun 2014 02:55:13 -0000 Message-Id: In-Reply-To: <360c80c13ea44a73b3495712a2730333@git.apache.org> References: <360c80c13ea44a73b3495712a2730333@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [14/18] android commit: CB-6876 Fix the "print usage" CB-6876 Fix the "print usage" Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/d427c52a Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/d427c52a Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/d427c52a Branch: refs/heads/4.0.x Commit: d427c52aacb974142e10677db1a43a184cfab80b Parents: eb623a8 Author: Marcel Kinard Authored: Wed Jun 4 19:12:55 2014 -0400 Committer: Marcel Kinard Committed: Wed Jun 4 19:12:55 2014 -0400 ---------------------------------------------------------------------- bin/templates/cordova/lib/run.js | 2 +- bin/templates/cordova/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d427c52a/bin/templates/cordova/lib/run.js ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/lib/run.js b/bin/templates/cordova/lib/run.js index dd67901..be7f5a2 100644 --- a/bin/templates/cordova/lib/run.js +++ b/bin/templates/cordova/lib/run.js @@ -125,7 +125,7 @@ var path = require('path'), }); } -module.exports.help = function() { +module.exports.help = function(args) { console.log('Usage: ' + path.relative(process.cwd(), args[0]) + ' [options]'); console.log('Build options :'); console.log(' --debug : Builds project in debug mode'); http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d427c52a/bin/templates/cordova/run ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/run b/bin/templates/cordova/run index d4e2c6c..8c6fe38 100755 --- a/bin/templates/cordova/run +++ b/bin/templates/cordova/run @@ -26,7 +26,7 @@ var run = require('./lib/run'), // Support basic help commands if (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || args[2] == 'help' || args[2] == '-help' || args[2] == '/help') { - run.help(); + run.help(args); } else { reqs.run().done(function() { return run.run(args);