inspect: update flag description of "--type" flag
Before this patch:
docker inspect --help | grep '\-\-type'
--type string Return JSON for specified type
With this patch:
docker inspect --help | grep '\-\-type'
--type string Only inspect objects of the given type
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -77,7 +77,7 @@ func NewInspectCommand(dockerCli command.Cli) *cobra.Command {
|
||||
|
||||
flags := cmd.Flags()
|
||||
flags.StringVarP(&opts.format, "format", "f", "", flagsHelper.InspectFormatHelp)
|
||||
flags.StringVar(&opts.objectType, "type", "", "Return JSON for specified type")
|
||||
flags.StringVar(&opts.objectType, "type", "", "Only inspect objects of the given type")
|
||||
flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")
|
||||
|
||||
_ = cmd.RegisterFlagCompletionFunc("type", completion.FromList(allTypes...))
|
||||
|
||||
Reference in New Issue
Block a user