HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleopt-env-conf-0.11.0.0Haskell2010

OptEnvConf.Run

  • 5 values
valuerunParser
  1. :: Version

    Program version, get this from Paths_your_package_name

  2. -> String

    Program description

  3. -> Parser a
  4. -> IO a
#

Run a parser

This function with exit on:

  • Parse failure: show a nice error message.

  • -h|--help: Show help text

  • --version: Show version information

  • --render-man-page: Render a man page

  • --bash-completion-script: Render a bash completion script

  • --zsh-completion-script: Render a zsh completion script

  • --fish-completion-script: Render a fish completion script

  • query-opt-env-conf-completion: Perform a completion query

This gets the arguments and environment variables from the current process.