UNPKG

magicli

Version:

Automagically generates command-line interfaces (CLI) for any module. Expected options and help sections are created automatically based on parameters names, with support to async. It can be installed globally, in order to *execute* any module, or .js fil

30 lines (23 loc) 439 B
'use strict'; const tests = [{ description: 'Version --version', input: '--version', output: `1.0.0` }, { description: 'Help --help', input: '--help', output: ` Description: Test function-simple-concat Usage: $ function-simple-concat [options] Options: --p1 --p2 ` }, { description: '--p1=P1 --p2=P2', input: '--p1=P1 --p2=2', output: 'P1 2' }]; module.exports = tests;