X-Git-Url: http://gitweb.michael.orlitzky.com/?p=hath.git;a=blobdiff_plain;f=src%2FCommandLine.hs;h=430743fab1116c66ed7815ee76f24ad9c95ff1cf;hp=8ed8597fe25d62e7390882a460f0787a6c90e10a;hb=45ac9baca360d0f0dabe4576fb44c1634a50dbf7;hpb=18a81546e7c4ad10574918efb08b2e104e911d73 diff --git a/src/CommandLine.hs b/src/CommandLine.hs index 8ed8597..430743f 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -1,18 +1,22 @@ --- The CommandLine module handles parsing of the command-line options. --- It should more or less be a black box, providing Main with only the --- information it requires. - +-- | The CommandLine module handles parsing of the command-line +-- options. It should more or less be a black box, providing Main +-- with only the information it requires. module CommandLine ( help_set, help_text, input_function, Mode(..), parse_errors, - parse_mode -) where - -import Data.Char(toLower) -import System.Console.GetOpt + parse_mode) +where + +import Data.Char (toLower) +import System.Console.GetOpt ( + ArgDescr(NoArg, ReqArg), + ArgOrder(Permute), + OptDescr(..), + getOpt, + usageInfo ) import System.Environment (getArgs)