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.
Generic field definition method. Similar to flag/flagList/number/etc,
but you must specify the type
(and optionally multiple
and delim
)
fields on each one, or Jack won't know how to define them.
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.
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.