mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 07:02:26 +00:00

As a result of taking a look on PR #1967 I realized there is 819 executable files in this repository. It is obvious this is an error.
24 lines
447 B
JavaScript
24 lines
447 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Module dependencies
|
|
*/
|
|
|
|
// Public node modules.
|
|
const _ = require('lodash');
|
|
const program = require('commander');
|
|
|
|
/**
|
|
* Monkey-patch commander
|
|
*/
|
|
|
|
// Allow us to display `help()`, but omit the wildcard (`*`) command.
|
|
program.Command.prototype.usageMinusWildcard = program.usageMinusWildcard = () => {
|
|
program.commands = _.reject(program.commands, {
|
|
_name: '*'
|
|
});
|
|
program.help();
|
|
};
|
|
|
|
module.exports = program;
|