You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/06/11 01:24:13 UTC
git commit: adding browserify option
Repository: cordova-plugman
Updated Branches:
refs/heads/master 56da8787a -> bd2a59b6e
adding browserify option
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/bd2a59b6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/bd2a59b6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/bd2a59b6
Branch: refs/heads/master
Commit: bd2a59b6e6ebef84c6ec392c9dc9e3cb6a76ad57
Parents: 56da878
Author: Anis Kadri <an...@apache.org>
Authored: Tue Jun 10 14:29:20 2014 -0700
Committer: Anis Kadri <an...@apache.org>
Committed: Tue Jun 10 14:29:20 2014 -0700
----------------------------------------------------------------------
main.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/bd2a59b6/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 89b703d..6c9d59b 100755
--- a/main.js
+++ b/main.js
@@ -40,6 +40,7 @@ var known_opts = { 'platform' : [ 'ios', 'android', 'amazon-fireos', 'blackberry
, 'variable' : Array
, 'www': path
, 'searchpath' : [path, Array]
+ , 'browserify': Boolean
}, shortHands = { 'var' : ['--variable'], 'v': ['--version'], 'h': ['--help'] };
var cli_opts = nopt(known_opts, shortHands);
@@ -55,7 +56,7 @@ if (cli_opts.plugins_dir || cli_opts.project) {
process.on('uncaughtException', function(error) {
if (cli_opts.debug) {
- console.error(error.stack);
+ console.error(error.message, error.stack);
} else {
console.error(error.message);
}