-
Notifications
You must be signed in to change notification settings - Fork 115
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
kubernetes-run doesn't not work as described in documentation #537
Comments
I got it working by moving arguments after options and using an argument that doesn't have dashes. This works as expected:
I'd suggest two things based on this: 1. Move to end in usage documentation From:
To
Arguments are not optional so a real life use case would help. Ie. Pass arguments as 2. Figure out how to pass arguments as options. Ie. |
Thanks for the bug report @aom ! I'm not able to reproduce the first issue (putting arguments, even more than one, right after the namespace and context is working fine for me--see below), but the second one is definitely a problem. Unfortunately, I was not able to find a workaround. It seems to be a problem with optparse itself. Fortunately, our team is working on revamping this project's CLI right now, and as part of that, we have some changes planned for Output from failure to reproduce positional problem
|
Bug report
I have deployed a PodTemplate to my namespace and I'm trying to run it from command-line using the Usage documentation. It works fine when I use an executable from my project's
bin
directory but fails when I try to use rake with arguments.Either this is a bug in CLI or I'm trying to use it incorrectly. If latter then documentation update is enough.
Expected behavior:
Actual behavior: [What actually happened]
Namespace and context are omited from
ARGV
andargs
is not handled as expected.Version(s) affected:
v0.26.7
Steps to Reproduce
The text was updated successfully, but these errors were encountered: