by dmitriid · 4y ago · 0 comments
$ podman -h
Error: pflag: help requested
See 'podman --help'
The program recognised the flag. But instead of running the intended functionality, it tells you to re-run it. And this maddening behaviour is pervasive. You already have the code processing this, you've coded the functionality to output "you wanted X, but typed Y" because apparently this is a common thing for people to do, why don't you just run X?(Looking at `brew upgrade/update` in silent fury)
But I don't see why they couldn't leave the base command's short option alone-- the user intent of a bare "docker -h" (or "podman -h") seems obvious.
[0] https://docs.docker.com/engine/deprecated/#-h-shorthand-for-...