finch icon indicating copy to clipboard operation
finch copied to clipboard

`finch run -h` does not produce expected result

Open stephenmsachs opened this issue 2 years ago • 2 comments

finch help run tells me to run finch run -h or finch run --help for help. The former is not "help", but 'hostname' and will fail without an argumnet.

stephenmsachs avatar Feb 14 '23 14:02 stephenmsachs

Can recreate. Seems that finch help command returns the cobra generated help instead of passing it down to nerdctl.

$ finch help run
Run a command in a new container

Usage:
  finch run [flags]

Flags:
  -h, --help   help for run

Global Flags:
      --debug   running under debug mode

$ finch run --help
Run a command in a new container. Optionally specify "ipfs://" or "ipns://" scheme to pull image from IPFS.

Usage: finch run [flags] IMAGE [COMMAND] [ARG...]

Flags:
      --add-host strings            Add a custom host-to-IP mapping (host:ip)
.....
See also 'finch --help' for the global flags such as '--namespace', '--snapshotter', and '--cgroup-manager'.

Running finch command --help will always return the correct help call.

weikequ avatar Feb 14 '23 23:02 weikequ

I would like to work on this. Can you please assign this to me?

pradeepnnv avatar Nov 03 '23 16:11 pradeepnnv