my_summary = program_name ++ "-" ++ (showVersion version)
--- | A description of the "daemonize" option.
+-- | A description of the \"lists\" option.
lists_help :: String
lists_help =
"A list of RBLs to check. See the manual for advanced syntax."
+-- | A description of the \"threshold\" option.
+threshold_help :: String
+threshold_help =
+ "The \"score\" a host must have to be considered blacklisted."
+
+
-- | A data structure representing the possible command-line
-- options. The CmdArgs library is doing heavy magic beneath the
-- hood here.
arg_spec :: OptionalConfiguration
arg_spec =
OptionalConfiguration {
- hosts = def &= typ "HOSTS" &= args,
- lists = def &= typ "RBLs" &= help lists_help }
+ hosts = def &= typ "HOSTS" &= args,
+ lists = def &= typ "RBLs" &= help lists_help,
+ threshold = def &= typ "INTEGER" &= help threshold_help }
&= program program_name
&= summary my_summary
&= details [description]