Permalink
Browse files

[fix] cli arguments were not being processed properly

  • Loading branch information...
1 parent 01d4a72 commit 2b8e4a084e63faba14dde61199e230c6c78fb137 @bmeck bmeck committed Aug 4, 2011
Showing with 4 additions and 3 deletions.
  1. +3 −2 bin/carapace
  2. +1 −1 lib/cli.js
View
@@ -22,13 +22,14 @@ function onPluginError (info) {
process.exit(1);
}
+var passthru = carapace.cli.extract(null, argv);
+
//
// Remark: Calling `carapace.listen()` with no
// arguments will fall-back to the default `hook-*`
// CLI options since
//
-carapace.start(function () {
- var passthru = carapace.cli.extract();
+carapace.start(argv, function () {
function configure (next) {
if (!Array.isArray(argv.plugin)) {
View
@@ -83,4 +83,4 @@ exports.rewrite = function (script, argv, override) {
exports.argv = function (argv) {
return hookio.cli.options(defaultOptions, argv).argv;
-};
+};

0 comments on commit 2b8e4a0

Please sign in to comment.