Navi.Args
Description
Provides functionality for parsing command-line arguments.
newtype Args f Source #
Represents command-line arguments. We use the "higher-kinded data" approach for:
Args Maybe
Args
Maybe
Args Identity
Identity
Constructors
Fields
Path to the configuration file.
Defined in Navi.Args
Methods
labelOptic :: Optic k NoIx (Args f1) (Args f2) a b Source #
showsPrec :: Int -> Args f -> ShowS Source #
show :: Args f -> String Source #
showList :: [Args f] -> ShowS Source #
getArgs :: MonadIO m => m (Args Identity) Source #
Parses cli args and fills in defaults. These defaults are based on the detected XDG Base Directory and default names.