Here's what's currently available in parse.js,
[X] --help, -h Show this help message [boolean] [default: false]
[] --version Show version number [boolean]
[X] --wt2html Wikitext -> HTML [boolean] [default: false]
[X] --html2wt HTML -> Wikitext [boolean] [default: false]
[X] --wt2wt Wikitext -> HTML -> Wikitext
[X] --html2html HTML -> Wikitext -> HTML
[X] --selser Use the selective serializer to go from HTML to
[X] --normalize Normalize the output as parserTests would do. Use
[X] --body_only Just return the body, without any normalizations
[] --config Path to a config.yaml file. Use --config w/ no
[X] --oldtext The old page text for a selective-serialization
[X] --oldtextfile File containing the old page text for a
[X] --oldhtmlfile File containing the old HTML for a
[] --domdiff File containing the diff-marked HTML for used
[X] --inputfile File containing input as an alternative to stdin
[] --pbin Input pagebundle JSON [default: ""]
[] --pbinfile Input pagebundle JSON file [default: ""]
[] --pboutfile Output pagebundle JSON to file [default: false]
[] --offline Shortcut to turn off various network fetches
[X] --record Record http requests for later replay
[X] --replay Replay recorded http requests for later replay
[] --verbose Log at level "info" as well
[X] --useWorker Use a worker farm [boolean] [default: false] [ NOT RELEVANT ]
[X] --linting Parse with linter enabled
[X] --loadWMF Use WMF mediawiki API config [ WON'T SUPPORT ]
[X] --prefix Which wiki prefix to use; e.g. "enwiki" for [ WON'T SUPPORT ]
[X] --domain Which wiki to use; e.g. "en.wikipedia.org" for
[X] --oldid Oldid of the given page. [default: null]
[X] --outputContentVersion The acceptable content version.[default: "2.1.0"]
[X] --pageName The page name, returned for {{PAGENAME}}. If no
[] --pageBundle Output pagebundle JSON [boolean] [default: false]
[X] --scrubWikitext Apply wikitext scrubbing while serializing. This
[] --contentmodel The content model of the input. Defaults to
[X] --wrapSections Output <section> tags (default false)
[X] --debug Provide optional flags. Use --debug=help for
[X] --trace Use --trace=help for supported options
[X] --dump Dump state. Use --dump=help for supported options
[X] --genTest Generates token transformer and DOM pass tests. [ WON'T SUPPORT ]
[X] --genTestOut Output file to use for token transformer tests [ WON'T SUPPORT ]
[X] --genDirectory Output directory to use for DOM tests [ WON'T SUPPORT ]
[X] --genTestFragments Enable fragment generation in DOM genTest output [ WON'T SUPPORT ]
[X] --fetchConfig Whether to fetch the wiki config from the server [ NOT RELEVANT ]
[X] --fetchTemplates Whether to fetch included templates recursively [ NOT RELEVANT ]
[X] --fetchImageInfo Whether to fetch image info via the API [ NOT RELEVANT ]
[X] --expandExtensions Whether we should request extension tag [ NOT RELEVANT ]
[X] --usePHPPreProcessor Whether to use the PHP preprocessor to expand [ NOT RELEVANT ]
[X] --addHTMLTemplateParameters Parse template parameters to HTML and add them to
[] --maxdepth Maximum expansion depth [default: 40]
[X] --apiURL http path to remote API, e.g.
[X] --rtTestMode Test in rt test mode (changes some parse &
[X] --useBatchAPI Turn on/off the API batching system [ NOT RELEVANT ]
[X] --phpConfigFile PHP config to splice into the JS pipelines [ NOT RELEVANT ]
[] --color Enable color output Ex: --no-color
vs what's in parse.php,
```
> php bin/parse.php --help
Omnibus script to convert between wikitext and HTML, and roundtrip wikitext or
HTML. Supports a number of options pertaining to pointing at a specific wiki or
enabling various features during these transformations.
If no options are provided, --wt2html is enabled by default.
See --help for detailed usage help.
Usage: php parse.php [--body_only|--help|--html2wt|--oldhtmlfile|--oldtextfile|--quiet|--selser|--wt2html]
--help (-1): Display this help message
--quiet (-1): Whether to suppress non-error output
Script specific parameters:
--body_only: Just return the body, without any normalizations as in
--normalize
--html2wt: HTML -> Wikitext
--oldhtmlfile: File containing the old HTML for a
selective-serialization (see --selser)
--oldtextfile: File containing the old page text for a
selective-serialization (see --selser)
--selser: Use the selective serializer to go from HTML to Wikitext.
--wt2html: Wikitext -> HTML
```