]> gitweb.michael.orlitzky.com - hath.git/blobdiff - src/CommandLine.hs
Remove the "reversed" mode -- do one thing and do it well and all that.
[hath.git] / src / CommandLine.hs
index 789f76c0addc7fa1281c9fd2ad711d9ac6fc073b..d0cf6f4f76bd7cdf038afa0be41f6510615674eb 100644 (file)
@@ -64,8 +64,7 @@ data Args =
   Reduced { barriers :: Bool } |
   Duped { barriers :: Bool } |
   Diffed { barriers :: Bool } |
-  Listed { barriers :: Bool } |
-  Reversed { barriers :: Bool }
+  Listed { barriers :: Bool }
   deriving (Data, Show, Typeable)
 
 -- | Description of the 'Regexed' mode.
@@ -92,20 +91,13 @@ listed_description :: String
 listed_description =
   "Enumerate the IP addresses contained within the input CIDRs."
 
--- | Description of the 'Reversed' mode.
-reversed_description :: String
-reversed_description =
-  "Perform a reverse DNS (PTR) lookup on each IP address " ++
-  "contained within the input CIDRs."
-
-
 -- | We use explicit annotation here because if we use the magic
 --   annotation, we have to duplicate the same argument definitions six
 --   times.
 --
 arg_spec :: Annotate Ann
 arg_spec =
-  modes_ [regexed += auto, reduced, duped, diffed, listed, reversed]
+  modes_ [regexed += auto, reduced, duped, diffed, listed]
     += program program_name
     += summary my_summary
     += helpArg [explicit,
@@ -129,7 +121,6 @@ arg_spec =
     duped    = make_mode Duped duped_description
     diffed   = make_mode Diffed diffed_description
     listed   = make_mode Listed listed_description
-    reversed = make_mode Reversed reversed_description
 
 -- | This is the public interface; i.e. what main() should use to get
 --   the command-line arguments.