mirror of
https://github.com/containers/podman.git
synced 2025-12-08 23:00:23 +08:00
Usability cleanup for 'inspect'
Make the usage messages (and options) different between podman inspect, podman image inspect, and podman container inspect. Disable inapplicable options (-l, -s) for podman image inspect Disable -t (type) when the type is implicit through the subcommand. Update man page to reflect differences in usage. Fix broken test. Uglier than desirable due to Go and Cobra limitations Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@@ -42,7 +42,7 @@ var mainCommands = []*cobra.Command{
|
||||
&_imagesCommand,
|
||||
_importCommand,
|
||||
_infoCommand,
|
||||
_inspectCommand,
|
||||
&_inspectCommand,
|
||||
_killCommand,
|
||||
_loadCommand,
|
||||
podCommand.Command,
|
||||
|
||||
Reference in New Issue
Block a user