Parse process.argv-style arguments into a typed object.
process.argv
Throws on invalid flag combinations (e.g. malformed --date, missing value after a flag, unknown --doc-type, non-integer --limit).
--date
--doc-type
--limit
Parse
process.argv-style arguments into a typed object.Throws on invalid flag combinations (e.g. malformed
--date, missing value after a flag, unknown--doc-type, non-integer--limit).