Parse the article-generator CLI argv into a CliOptions struct.
Recognises --run-dir <dir> (or --run-dir=<dir>), --all, --out-dir <dir>,
--title <s>, --description <s>, --help/-h, and rejects the historical
--lang / --language / --markdown-only flags now that the CLI always
renders all 14 languages with HTML output.
Parameters
argv: readonlystring[]
Argument vector excluding node and the script path.
repoRoot: string
Absolute path to the repository root, used to default outDir.
Parse the article-generator CLI argv into a CliOptions struct.
Recognises
--run-dir <dir>(or--run-dir=<dir>),--all,--out-dir <dir>,--title <s>,--description <s>,--help/-h, and rejects the historical--lang/--language/--markdown-onlyflags now that the CLI always renders all 14 languages with HTML output.