code: function loadCommand(name, command, silent) {
      var resource = app.commands[name];
      var usage = app.usage || [
        name
          ? 'Cannot find commands for ' + name.magenta
          : 'Cannot find commands'
      ];
  
      if (resource && (!command || resource[command])) {
        return true;
      }
  
      if (app.cli.source) {
        if (!app.cli.sourceDir) {
          try {
            var stats = fs.statSync(app.cli.source);
            app.cli.sourceDir = stats.isDirectory();
          }
          catch (ex) {
            if (app.cli.notFoundUsage) {
              showUsage(usage)
            }
  
            return false;
          }
        }
  
        try {
          if (app.cli.sourceDir) {
            app.commands[name] = require(path.join(app.cli.source, name || ''));
          }
          else {
            app.commands = common.mixin(app.commands, require(app.cli.source));
          }
          return true;
        }
        catch (err) {
          // If that file could not be found, error message should start with
          // "Cannot find module" and contain the name of the file we tried requiring.
          if (!err.message.match(/^Cannot find module/) || (name && err.message.indexOf(name) === -1)) {
            throw err;
          }
  
          if (!silent) {
            if (app.cli.notFoundUsage) {
              showUsage(usage);
            }
          }
  
          return false;
        }
      }
    }
docs: Helper function which loads the file for the specified `name` into `app.commands`.