, oConfdAddr
, oConfdPort
, oInputFile
+ , oInstances
, genericOptions
) where
-- connect to
, optInputFile :: Maybe FilePath -- ^ Path to the file containing the
-- information to be parsed
+ , optInstances :: Maybe FilePath -- ^ Path to the file contained a
+ -- serialized list of instances as in:
+ -- ([Primary], [Secondary])
} deriving Show
-- | Default values for the command line options.
, optConfdAddr = Nothing
, optConfdPort = Nothing
, optInputFile = Nothing
+ , optInstances = Nothing
}
-- | Abbreviation for the option type.
"the input FILE",
OptComplFile)
+oInstances :: OptType
+oInstances =
+ ( Option "i" ["instances"]
+ (ReqArg (\ f o -> Ok o { optInstances = Just f}) "FILE")
+ "the FILE containing serialized instances",
+ OptComplFile)
+
-- | Generic options.
genericOptions :: [GenericOptType Options]
genericOptions = [ oShowVer