Module
Node.Yargs.Setup
- Package
- purescript-yargs
- Repository
- paf31/purescript-yargs
#YargsSetup Source
data YargsSetup :: Type
A value which can be used to configure the yargs
module.
The Semigroup
and Monoid
instances can be used to combine the various
options, which are made available as functions by this module:
setup = fold
[ usage "$0 -w Word1 -w Word2"
, example "$0 -w Hello -w World" "Say hello!"
]
Instances
#usage Source
usage :: String -> YargsSetup
Provide a usage message.
#demandCount Source
demandCount :: Int -> String -> YargsSetup
#requiresArg Source
requiresArg :: String -> YargsSetup
#boolean Source
boolean :: String -> YargsSetup
#string Source
string :: String -> YargsSetup
#config Source
config :: String -> YargsSetup
#wrap Source
wrap :: Number -> YargsSetup
#strict Source
strict :: YargsSetup
#defaultHelp Source
defaultHelp :: YargsSetup
Will make --help
the option to trigger help output
#defaultVersion Source
defaultVersion :: YargsSetup
Tries to find your package.json and parse the "version" field
Will make --version
the option to trigger version output
#showHelpOnFail Source
showHelpOnFail :: Boolean -> String -> YargsSetup