X-Git-Url: https://gitweb.michael.orlitzky.com/?p=email-validator.git;a=blobdiff_plain;f=src%2FCommandLine.hs;fp=src%2FCommandLine.hs;h=e76fedd94efb096eaadd545bec579b1cb9eed9ac;hp=787cc1992f3d0a1c8099a8048d833396698e76af;hb=2e8aab2a69a8b9887e4f037115b80a2063d3a6b7;hpb=26d9ffe7a637c826da3b1b330843173205d79964 diff --git a/src/CommandLine.hs b/src/CommandLine.hs index 787cc19..e76fedd 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -13,8 +13,7 @@ import System.Console.CmdArgs ( details, help, program, - summary, - typFile ) + summary ) -- Get the version from Cabal. @@ -22,11 +21,7 @@ import Paths_email_validator ( version ) import Data.Version ( showVersion ) --- We optionally accept input/output files to use instead of --- stdin/stdout. data Args = Args { accept_a :: Bool, - input_file :: Maybe FilePath, - output_file :: Maybe FilePath, rfc5322 :: Bool } deriving (Show, Data) @@ -43,14 +38,6 @@ accept_a_help :: String accept_a_help = "Accept an 'A' record for the domain instead of requiring an MX record." -input_file_help :: String -input_file_help = - "Path to the input file (default: stdin), one email address per line" - -output_file_help :: String -output_file_help = - "Path to the output file (default: stdout)" - rfc5322_help :: String rfc5322_help = "Validate according to RFC 5322 (incredibly lenient)." @@ -58,8 +45,6 @@ rfc5322_help = arg_spec :: Args arg_spec = Args { accept_a = def &= help accept_a_help, - input_file = def &= typFile &= help input_file_help, - output_file = def &= typFile &= help output_file_help, rfc5322 = def &= help rfc5322_help } &= program program_name &= summary my_summary