stack-3.3.1: The Haskell Tool Stack
Safe HaskellNone
LanguageGHC2021

Stack.Options.GlobalParser

Description

Functions to parse Stack's 'global' command line arguments.

Synopsis

Documentation

globalOptsFromMonoid Source #

Arguments

:: MonadIO m 
=> String

The name of the current Stack executable, as it was invoked.

-> Maybe (Path Abs File)

The path to the current Stack executable, if the operating system provides a reliable way to determine it and where a result was available.

-> Bool 
-> GlobalOptsMonoid 
-> m GlobalOpts 

Create GlobalOpts from GlobalOptsMonoid.

globalOptsParser :: FilePath -> GlobalOptsContext -> Parser GlobalOptsMonoid Source #

Parser for global command-line options.