-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support for extra-opts #32
Comments
I'm not sure that's really in scope of If using a I'm not even going to insist on a PR (although that would be appreciated)... if you can suggest a method signature with a bit of documentation about how you see it working that would help me understand what you're aiming for. |
Yes, adding the code was a mistake. Let's review "support for extra-opts" issue again, without looking to my "sample code", and reopen it? |
Did you take a look on https://nagios-plugins.org/doc/extra-opts.html ? My proposal is to add common/standart solution for such/similar task into your library, which already has 'ArgumentParser' part. I'm not a Python developer, so I can't suggest an implementation [without being ridiculed]. |
Yes, I've read that doc before, and I'm familiar with it. I'm not sure I see a way to implement this in a way that's easily portable between plugins. The only ways to implement it that come to mind are going to require a lot of custom code for each use of it, which to my mind defeats the purpose. I'll leave the issue open for a bit in case you can suggest a way to implement this that's not going to require each plugin developer to write a ton of code to use. |
It would be nice to provide common/standart solution for plugins to support "Extra-Opts" (https://nagios-plugins.org/doc/extra-opts.html).
That highly required to "hide" passwords for command line arguments.
I think this project is a very good place to provide such a solution.
The text was updated successfully, but these errors were encountered: