, connect_timeout :: Int
, simple :: Bool
, cleanupTmpFile :: Bool
+ , removeSentFile :: Bool
}
instance Default Args where
600
False
False
+ False
-- | all options
allOptions :: [(String, OptDescr (Args -> Args))]
["suffix"]
(ReqArg (\s o -> o {suffix = s : (suffix o)}) "SUFFIX")
"Allowed file suffixes in hotfolder mode")
+ , ( "a"
+ , Option
+ ['u']
+ ["remove"]
+ (NoArg (\o -> o {removeSentFile = not (removeSentFile o)}))
+ ("Toggle removal of sent file (default: " ++ show (removeSentFile def) ++ ")"))
, ( "a"
, Option
['m']