sb-command
sb-command is the CLI parser you'll ever need.
Documentation
There are several types of parameters
[name]
meansname
is an optional parameter<name>
meansname
is a required parameter[name...]
meansname
is an optional variadic parameter<name...>
meansname
is a required variadic parameter- Specifying no parameter with an option means it's boolean
To add nested commands, simply join them with dot. For example for remote add
use remote.add
as the command name.
To add configs specific to certain commands, do the .option()
call after that particular .command()
call. If you want your configs to be global, add them before adding any other command.
Example
const command = command version'0.0.1' description'Git Versonal Control System'
API
: this : this : this
LICENSE
This package is licensed under the terms of MIT License. See the LICENSE file for more info.