Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Processes both options and positional arguments. Functions here return both any successful results and any errors. Ordinarily you will not need this module; instead, see Multiarg for most uses or Multiarg.Mode for commands that have more than one mode.
Documentation
PosArg a |
interspersed :: [(ShortName, ArgSpec a)] -> [(LongName, ArgSpec a)] -> (String -> a) -> [Word] -> ([Either [Output a] (PosArg a)], Maybe OptName) Source
Processes a command line where options are interspersed with positional arguments. A stopper is not returned; all words after a stopper are treated as positional arguments.