Function marian::parseOptions¶
Defined in File config.cpp
Function Documentation¶
-
Ptr<Options>
marian
::
parseOptions
(int argc, char **argv, cli::mode mode, bool validate = true)¶ Parse the command line options.
- Return
parsed options
- Parameters
argc
: number of arguments passed to the programargv
: array of command-line argumentsmode
: change the set of available command-line options, e.g. training, translation, etc.validate
: validate parsed options and abort on failure