-- The usage header
usage :: String
-usage = "Usage: hath [regexed|reduced|duplicated|diffed] [-h] [-i FILE]"
+usage = "Usage: hath [regexed|reduced|duped|diffed] [-h] [-i FILE]"
-- The usage header, and all available flags (as generated by GetOpt)
else do
-- Some non-option was given, but were any of them modes?
case (lowercase (non_options !! 0)) of
- "regex" -> return Regex
- "regexed" -> return Regex
- "reduce" -> return Reduce
- "reduced" -> return Reduce
- "dupe" -> return Dupe
- "duplicated" -> return Dupe
- "diff" -> return Diff
- "diffed" -> return Diff
+ "regex" -> return Regex
+ "regexed" -> return Regex
+ "reduce" -> return Reduce
+ "reduced" -> return Reduce
+ "dupe" -> return Dupe
+ "duped" -> return Dupe
+ "diff" -> return Diff
+ "diffed" -> return Diff
_ -> return Regex