nesquena / dante

Turn any ruby code into a daemon.
MIT License
313 stars 17 forks source link

Dante and command line arguments #4

Closed neomantic-zz closed 9 years ago

neomantic-zz commented 12 years ago

Dante is pretty nice. I tried to use the classes in a project of mine, not as a CLI daemon, but as a in process daemon - (The use case, was spawning a service, inside of cucumber). It works perfectly with one exception.

But I encountered what I consider a problem. When a runner is executed , Dante uses the OptionParser. Of course, the OptionParser, uses ARGV. So when someone uses Dante in the code, rather than from the CLI, it is possible to pass arguments to Dante, that Dante does not understand.

Maybe you only want to use Dante from the CLI, but it works pretty well in the code too. There is no similar code in daemon_spawn, or Daemons, that does what Dante can do in this regard.

krainboltgreene commented 9 years ago

Moved to new repository libdante/dante.gem/issues/3