Open dvdksn opened 1 year ago
Thanks for reporting, @dvdksn (thought I commented, but apparently forgot)
Some thoughts from the top of my head;
But it could also be Golang or Cobra itself parsing flags before doing anything else 🤔
I guess we need to dig into "why" it parses flags before validating if it knows the command 😂
I am interested in gaining a understanding of Docker's internal workings. Based on the description this looks like a pretty reasonable first ticket to get my hands dirty. Mind if I have a go at taking on this one?
It seems like there have not been any updates on Billy-North's change in a month. I will give it a try. if anyone opposes please let me know.
From the comment above the PR is drafting, but I want to continue to fix this, maybe this is my first contribution, can I work on this? thanks
From the linked PR it looks like @Billy-North won't have time to work on it (https://github.com/docker/cli/pull/4568#issuecomment-1775117354) so it's probably fine to work on this if you know an alternative fix :)
Go for it, I have been too busy to look at this for the past few weeks and I am doubtful I will get a chance again for at least another few weeks. Feel free to take this one :)
Hi! I'm from the UT Austin virtualization class and as part of our open source project, I'd like to take on this issue if possible. Thanks!
Description
If you try to run a nonexistent command, the CLI returns the following error:
But if you also pass a flag, the error focuses on the flag instead of the misspelled command name:
Reproduce
Expected behavior
It should identify that the command name is wrong, and return
docker: 'COMMAND' is not a docker command.
docker version