Module

Node.Yargs.Setup

#YargsSetup

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

usage :: String -> YargsSetup

Provide a usage message.

#example

example :: String -> String -> YargsSetup

Provide an example command and description.

#demandCount

#requiresArg

#describe

#boolean

#defaultHelp

defaultHelp :: YargsSetup

Will make --help the option to trigger help output

#version

#defaultVersion

defaultVersion :: YargsSetup

Tries to find your package.json and parse the "version" field Will make --version the option to trigger version output

#showHelpOnFail

Modules