API Reference
Last updated
Last updated
Saffron exports two functions: command
and init
. The command
function is almost identical to Yargs' command()
function (object form) with several additional options. The init
function is analogous to "calling" yargs.argv
to initialize the argument parser.
When building CLIs with Saffron, command
must be called once for each command the application needs to register. Then, init
must be called to initialize the application.