Skip to content

Commit

Permalink
Add another note about command modules
Browse files Browse the repository at this point in the history
  • Loading branch information
anandthakker committed Dec 6, 2015
1 parent 0022934 commit b609664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/commands/build.js
Expand Up @@ -51,8 +51,7 @@ function build(documentation, parsedArgs, callback) {
hljs: options.hljs || {}
};

var generator = documentation.bind(null,
inputs, options, onDocumented);
var generator = documentation.bind(null, inputs, options, onDocumented);

function onDocumented(err, comments) {
if (err) {
Expand Down
6 changes: 5 additions & 1 deletion lib/commands/index.js
@@ -1,8 +1,12 @@
/*
* Maps command name to a command plugin module. Each command plugin module
* should export a function that takes (documentation, parsedArgs), where
* must export a function that takes (documentation, parsedArgs), where
* documentation is just the main module (index.js), and parsedArgs is
* { inputs, options, command, commandOptions }
*
* Command modules should also export a `description`, which will be used in
* the main CLI help, and optionally a `parseArgs(yargs, parentArgv)` function
* to parse additional arguments.
*/

module.exports = {
Expand Down

0 comments on commit b609664

Please sign in to comment.