X-Git-Url: http://gitweb.michael.orlitzky.com/?p=hath.git;a=blobdiff_plain;f=src%2FCommandLine.hs;h=d0cf6f4f76bd7cdf038afa0be41f6510615674eb;hp=789f76c0addc7fa1281c9fd2ad711d9ac6fc073b;hb=006f90418a578308104b75362f0b595466900eed;hpb=bea923306878ccc5deb9e593aa6592550dcadad5 diff --git a/src/CommandLine.hs b/src/CommandLine.hs index 789f76c..d0cf6f4 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -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.