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

10 lines (8 loc) 169 B
'use strict'; const cliss = require('../../../'); const fn = (param1 = 'defaultParam1', param2) => `${param1}-${param2}`; cliss(fn, { help: { stripAnsi: true } });