New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding commands in multiple places #25
Comments
I think this is going to be problematic when the arguments clash, i-e, both tools offer a I'd propose that Curassow provides an API that you can use to serve instead of using the command line interface, so you're free to add whatever handling you want. How does this sound? |
You're right, that's definitely a better way to do it. Let me know when there's an issue on Curassow that I can track, thanks! |
Perhaps it makes sense to go into kylef-archive/Curassow#12. That way, you can make an instance of the arbiter and run it. let arbiter = Arbiter<SyncronousWorker>(workers: 3, addresses: [], timeout: 20, application: app)
try arbiter.run() |
Hmm that's fair, but I really like how I didn't have to worry about such details with |
I'm struggling with using Curassow, because it's using Commander for input arguments. I'd like to add my own arguments and parse my app's specific ones only, and leave Curassow to parse its own as well. Unfortunately currently Commander errors out if any command is unused, making this usecase impossible.
Assuming I'm not missing anything, I'd like there to be an option to not error out when unrecognized arguments are passed, instead they'd be ignored, making multi-layer argument parsing possible.
The text was updated successfully, but these errors were encountered: