Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
A flag, which represents a command line option. The values associated with the flags are typically not parsed. These just handle the structure of command line options.
fromArguments :: MonadThrow m => [String] -> m [Flag] Source #
Converts a list of command line arguments into a list of flags. If there are any unexpected arguments, invalid options, or unknown options, an exception will be thrown.