Resulting definitions, suitable to be passed to Node's util.parseArgs,
but also including description and short fields, if set.
options passed to the Jack constructor
map of { <short>: <long> } strings for each short name defined
the data used to generate Jack#usage and Jack#usageMarkdown content.
Custom printer for util.inspect
Add one or more flag fields.
Add one or more multiple flag fields.
Add one or more number fields.
Add one or more multiple number fields.
Add one or more string option fields.
Add one or more multiple string option fields.
Parse a string of arguments, and return the resulting
{ values, positionals } object.
If an JackOptions#envPrefix is set, then it will read default values from the environment, and write the resulting values back to the environment as well.
Environment values always take precedence over any other value, except an explicit CLI setting.
Set the default value (which will still be overridden by env or cli)
as if from a parsed config file. The optional source param, if
provided, will be included in error messages if a value is invalid or
unknown.
Return the configuration options as a plain object
Return the usage banner for the given configuration
Return the usage banner markdown for the given configuration
Validate that any arbitrary object is a valid configuration values
object. Useful when loading config files or other sources.
Class returned by the jack function and all configuration definition methods. This is what gets chained together.