diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-27 22:15:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 22:15:31 +0100 |
commit | 4e553cfd468c06ae45a88c51c57137dc4607ffe4 (patch) | |
tree | cd62c7836ef625cc837b941071b7a21f5e447df0 /cmd/podman/images.go | |
parent | 404252806730ffc2d08e16af3948e33baf924b3f (diff) | |
parent | 4a33ee2ab337b84bbfbc0045c08ac3d43073d702 (diff) | |
download | podman-4e553cfd468c06ae45a88c51c57137dc4607ffe4.tar.gz podman-4e553cfd468c06ae45a88c51c57137dc4607ffe4.tar.bz2 podman-4e553cfd468c06ae45a88c51c57137dc4607ffe4.zip |
Merge pull request #2471 from baude/clifixups
fix up a number of misplace commands
Diffstat (limited to 'cmd/podman/images.go')
-rw-r--r-- | cmd/podman/images.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go index 6e82195a9..c7f80c34a 100644 --- a/cmd/podman/images.go +++ b/cmd/podman/images.go @@ -87,7 +87,7 @@ var ( imagesCommand cliconfig.ImagesValues imagesDescription = "lists locally stored images." - _imagesCommand = &cobra.Command{ + _imagesCommand = cobra.Command{ Use: "images", Short: "List images in local storage", Long: imagesDescription, @@ -103,8 +103,9 @@ var ( ) func init() { - imagesCommand.Command = _imagesCommand + imagesCommand.Command = &_imagesCommand imagesCommand.SetUsageTemplate(UsageTemplate()) + flags := imagesCommand.Flags() flags.BoolVarP(&imagesCommand.All, "all", "a", false, "Show all images (default hides intermediate images)") flags.BoolVar(&imagesCommand.Digests, "digests", false, "Show digests") |