-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
--platform
needs to be the first flag on the commandline, otherwise it is ignored
#1488
Comments
I've done some quick testing, and it seems the other flags, placed before or after |
My guess is that this is occurring because of the unchecked I think that call is failing because of the unknown (at the time of parsing) first option passed to the command line. Cobra probably even parses |
@fgiorgetti FYI |
Closing this as a dup |
Describe the bug
If a different flag precedes
--platform
on the command line, the value given to it is ignored.How To Reproduce
Try a
skupper init
with--platform
not as the first flag:Notice that the command above installed skupper on the K8S namespace
dh-1248
, instead of the requested podman install.See that changing the placement of the
--platform
flag causes the correct behavior to take place.Also, note that the value of the
--platform
is completely ignored:On the example above, the invalid value
asdf
was given to--platform
and yet it was allowed to continue.Expected behavior
Either:
--platform
should be respected, regardless of its position on the command line, or--platform
flag to be the first in the command line should be documentedI did not see anything on the documentation pointing to the necessity of
--platform
to be the first in the command line. Even in that case, an error should be generated when that's not in its proper place, instead of continuing with a configuration different from what the user specified.Environment details
Additional context
N/A
The text was updated successfully, but these errors were encountered: