Closed xrisk closed 2 weeks ago
I'm not sure what the correct solution for this problem is. I think Docker/Podman made a mistake not reserving -h
for help. One possibility is to use Command::disable_help_flag()
for podlet podman run
and add --help
back manually, but then how would one get the short help?
You could consider just podlet -h
to mean the short help and something like podlet --some-option foo --some-other-option bar -h hostname
to mean a hostname. It's not great, but its something.
Unfortunately, clap
(the library being used for command line argument parsing) doesn't work that way. podlet -h podman run
and podlet -h
both result in the short help for podlet
.
I guess I'll have to use podlet podman run -?
for the short help even though it's not a great solution since it makes podlet podman run
work different from every other Podlet command.
Using the
—hostname
full form makes this work as expected: