X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn.git;a=blobdiff_plain;f=src%2FCommandLine.hs;fp=src%2FCommandLine.hs;h=f2ee1b26585a3bbe6f7a42fdd026514ce9b7d22f;hp=adbb0d84c00493bcf2cffbfbbdb1f62cf702e329;hb=93702736986b10815324647bb002ab2c269afec0;hpb=ac97e3119df309c4eaaff0c72e5b5879f156616f diff --git a/src/CommandLine.hs b/src/CommandLine.hs index adbb0d8..f2ee1b2 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -21,6 +21,7 @@ import System.Console.CmdArgs ( import Paths_htsn (version) import Data.Version (showVersion) +import FeedHosts ( FeedHosts(..) ) import OptionalConfiguration ( OptionalConfiguration(..) ) -- | The description of the program, displayed as part of the help. @@ -92,11 +93,13 @@ username_help = arg_spec :: OptionalConfiguration arg_spec = OptionalConfiguration { + daemonize = def &= typ "BOOL" &= help daemonize_help, + -- Use an empty list for feed_hosts since cmdargs will appends to -- the default when the user supplies feed hosts. If he specifies -- any, those are all we should use. - daemonize = def &= typ "BOOL" &= help daemonize_help, - feed_hosts = def &= typ "HOSTNAMES" &= args, + feed_hosts = FeedHosts [] &= typ "HOSTNAMES" &= args, + log_file = def &= typFile &= help log_file_help, log_level = def &= typ "LEVEL" &= help log_level_help, output_directory = def &= typDir &= help output_directory_help,