| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Options
Synopsis
- data Opts = Opts {}
- data NextSongFlag
- execParser :: ParserInfo a -> IO a
- prefs :: PrefsMod -> ParserPrefs
- showHelpOnEmpty :: PrefsMod
- optsParser :: Parser Opts
- optsParserInfo :: ParserInfo Opts
Documentation
data NextSongFlag Source #
Constructors
| IncludeNextSong | |
| OnlyNextSong | |
| NoNextSong |
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
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.
optsParser :: Parser Opts Source #