Skip to content

Breaks when using "domain" as an option #370

Closed
@mgartner

Description

program
  .option('-d, --domain <domain>', 'domain name', 'example.com')
  .parse(process.argv);
events.js:86
    this.domain.enter();
                ^
TypeError: Object example.com has no method 'enter'
    at Command.emit (events.js:86:17)
    at Command.parseOptions (/Users/marcus/delstat/node_modules/commander/index.js:647:14)
    at Command.parse (/Users/marcus/delstat/node_modules/commander/index.js:435:21)
    at Object.<anonymous> (/Users/marcus/delstat/delstat.js:22:4)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions