X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FCommandLine.hs;h=f15a786c9089de96d7655bac2270dc1270aae26c;hb=49a0976cbc0f512442682e3095e1bcb657919da0;hp=51f20289fe9adb1c3c28163f92b308389a0eba3d;hpb=3296c2f6578001f6a40de1b1e1f79b25c987d3af;p=hath.git diff --git a/src/CommandLine.hs b/src/CommandLine.hs index 51f2028..f15a786 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -71,7 +71,7 @@ set_input arg opts = do -- The usage header usage :: String -usage = "Usage: hath [-h] [-i FILE]" +usage = "Usage: hath [regexed|reduced] [-h] [-i FILE]" -- The usage header, and all available flags (as generated by GetOpt) @@ -106,9 +106,11 @@ parse_mode = do else do -- Some non-option was given, but were any of them modes? case (lowercase (non_options !! 0)) of - "regex" -> return Regex - "reduce" -> return Reduce - _ -> return Regex + "regex" -> return Regex + "regexed" -> return Regex + "reduce" -> return Reduce + "reduced" -> return Reduce + _ -> return Regex