Function marian::parseOptions

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 program

  • argv: array of command-line arguments

  • mode: change the set of available command-line options, e.g. training, translation, etc.

  • validate: validate parsed options and abort on failure