mpd-current-json
Safe HaskellSafe-Inferred
LanguageHaskell2010

Options

Synopsis

Documentation

data Opts Source #

Constructors

Opts

Custom data record for storing Parser values

Fields

execParser :: ParserInfo a -> IO a #

Run a program description.

Parse command line arguments. Display help text and exit if any parse error occurs.

prefs :: PrefsMod -> ParserPrefs #

Create a ParserPrefs given a modifier

showHelpOnEmpty :: PrefsMod #

Show the help text if the user enters only the program name or subcommand.

This will suppress a "Missing:" error and show the full usage instead if a user just types the name of the program.