Skip to content

Command name "inspect" causes weird behaviour #377

@feyzo

Description

@feyzo

How to reproduce

  1. Put the code below in index.js, install commander, run node index.js
  2. Result: error: missing required argument 'some'
  3. Change command inspect to someothercommand
  4. Result: Actual log of the commander object
var program = require('commander');

program
  .command('inspect <some>')
  .description('Test bug')
  .action(function(some, options) {});

console.log(program);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCommander is not working as intended

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions