]> gitweb.michael.orlitzky.com - hath.git/blobdiff - src/CommandLine.hs
Add a test for the Cidr 'enumerate' function.
[hath.git] / src / CommandLine.hs
index 8ed8597fe25d62e7390882a460f0787a6c90e10a..430743fab1116c66ed7815ee76f24ad9c95ff1cf 100644 (file)
@@ -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)