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.

#example Source

example :: String -> String -> YargsSetup

Provide an example command and description.

#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