Commander.js: How to avoid `unknown option` error?

Created on 31 Jul 2015  路  2Comments  路  Source: tj/commander.js

I need to allow any parameters.

Most helpful comment

For any one else finding this via google.

Function was renamed to .allowUnknownOption()

    .command('my-command')
    .allowUnknownOption()
    .option(...

All 2 comments

For any one else finding this via google.

Function was renamed to .allowUnknownOption()

    .command('my-command')
    .allowUnknownOption()
    .option(...
Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeoLeung picture DeoLeung  路  4Comments

shadowspawn picture shadowspawn  路  4Comments

oknoorap picture oknoorap  路  4Comments

mtrabelsi picture mtrabelsi  路  3Comments

aminch picture aminch  路  3Comments