patriot
Version:
Patriot command-line interface and node.js library.
28 lines (24 loc) • 522 B
JavaScript
/*!
* Module dependencies.
*/
var console = require('./util/console'),
util = require('util');
/**
* $ patriot noop
*
* Outputs that the command-line command is unsupported.
*
* Options:
*
* - `argv` {Object} is an optimist object.
* - `callback` {Function} is a completion callback.
*/
module.exports = function (argv, callback) {
console.error(util.format(
"'%s' is not a %s command. See '%s help'",
argv._.join(' '),
argv.$0,
argv.$0
));
callback();
};