4 ms·
It's not just help. The example shows this $ podman -h Error: pflag: help requested See 'podman --help' The program recognised the flag. But instead of
by dmitriid 5y ago
It's not just help. The example shows this
$ 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)
- oedo 5y agoIt appears that docker cli will also eventually remove the short option for help. Their reasoning for it is to avoid conflicts with args (eg hostname '-h') in certain subcommands.[0][1] 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---help https://docs.docker.com/engine/deprecated/#-h-shorthand-for-... [1] https://github.com/docker/cli/issues/3249 https://github.com/docker/cli/issues/3249