mirror of
https://github.com/containers/podman.git
synced 2025-09-18 15:54:49 +08:00

The --module can only be parsed on the root level. It cannot work on the command level, because it must be "manually" parsed on init() to make sure the specified configuration files/modules are loaded prior to parsing the flags via Cobra. Hence move --module from the "persistent" to the "local" flags which will yield an error instead of doing nothing when being specified on the command level: ``` $ ./bin/podman run --module=foo.conf --rm alpine Error: unknown flag: --module See 'podman run --help' ``` Reported in #20000. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>