mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
12 lines
301 B
JavaScript
12 lines
301 B
JavaScript
'use strict';
|
|
|
|
const resolveInput = require('./resolve-input');
|
|
|
|
module.exports = () => {
|
|
const { commands, options } = resolveInput();
|
|
if (options.help) return true;
|
|
if (commands[0] === 'help') return true;
|
|
if (!commands.length && options['help-interactive']) return true;
|
|
return false;
|
|
};
|