steelbrain / denode

Debug node apps like a pro
MIT License
142 stars 12 forks source link

Passing args #14

Closed knownasilya closed 8 years ago

knownasilya commented 8 years ago

I'm trying the following denode bin/strider --no-cluster but denode doesn't want to run it. Any thoughts?

You can try it on the repo here https://github.com/Strider-CD/strider


Looks like this is the culprit:

if (!module.parent) {
  cli.parser.parse();
}

https://github.com/Strider-CD/strider/blob/master/bin/strider#L53

The parent is denode..

steelbrain commented 8 years ago

Investigating

steelbrain commented 8 years ago

After some investigation, I couldn't find a solution to not set module.parent in the dependent functions and now that we're thinking about it, it's a bin file instead of an external main file, it shouldn't just check for parent. It should execute by default

knownasilya commented 8 years ago

Good point. Will investigate why we have that there..