UNPKG

cliss

Version:

CLI Simple, Stupid. Automatic discovery of parameters names. Provides an easy and minimal setup by passing in only a function reference without the need of declaring all expected options names or create a help section by hand. Support to sync / async. Sup

30 lines (23 loc) 397 B
'use strict'; const tests = [ { description: 'object specification + passing in options / args', input: '--param1=A --param2=B', output: `A-B` }, { description: 'Passing in only one argument', input: '--param2=B', output: `defaultParam1-B` }, { input: '--help', output: ` Usage: $ destructuring-parameters-cli [options] Options: --param1 --param2 ` }]; module.exports = tests;