Skip to content

Args from docs are invalid

The documentation lists -h, -V, --version as valid arguments. They are not.

This is the result of pagedjs-cli -h:

node:path:181
        validateString(path, `paths[${i}]`);
        ^

TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received undefined
    at Object.resolve (node:path:181:9)
    at file:///C:/Users/ganuo/AppData/Roaming/npm/node_modules/pagedjs-cli/src/cli.js:66:22
    at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:552:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v23.5.0

pagedjs-cli -V:

error: unknown option '-V'

pagedjs-cli --version:

error: unknown option '--version'
Edited by Ooker