diff --git a/docco.js b/docco.js index e53b4de3..47184dab 100644 --- a/docco.js +++ b/docco.js @@ -275,7 +275,7 @@ // source files for languages for which we have definitions. configure = function(options) { var config, dir; - config = _.extend({}, defaults, _.pick(options, ..._.keys(defaults))); + config = _.extend({}, defaults, _.pick(options.opts(), ..._.keys(defaults))); config.languages = buildMatchers(config.languages); // The user is able to override the layout file used with the `--template` parameter. // In this case, it is also neccessary to explicitly specify a stylesheet file. diff --git a/docco.litcoffee b/docco.litcoffee index ca1eb3e7..e05f46db 100644 --- a/docco.litcoffee +++ b/docco.litcoffee @@ -244,7 +244,7 @@ template, or one of the built-in **layouts**. We only attempt to process source files for languages for which we have definitions. configure = (options) -> - config = _.extend {}, defaults, _.pick(options, _.keys(defaults)...) + config = _.extend {}, defaults, _.pick(options.opts(), _.keys(defaults)...) config.languages = buildMatchers config.languages diff --git a/package.json b/package.json index b2f2a335..81154ae8 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "The Quick and Dirty Literate Programming Documentation Generator", "keywords": ["documentation", "docs", "generator", "literate", "coffeescript"], "author": "Jeremy Ashkenas", - "version": "0.8.0", + "version": "0.8.1", "license": "MIT", "repository": { "type": "git",