summaryrefslogtreecommitdiff
path: root/cmd/podman/images.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-02-27 12:26:35 -0600
committerbaude <bbaude@redhat.com>2019-02-27 12:29:41 -0600
commit4a33ee2ab337b84bbfbc0045c08ac3d43073d702 (patch)
tree96dcdde8b74a0d0a2e6b04816de0f50a0009cfc8 /cmd/podman/images.go
parentfd16be5c00533e5237bfaa640e5afb4b45d29aa5 (diff)
downloadpodman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.tar.gz
podman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.tar.bz2
podman-4a33ee2ab337b84bbfbc0045c08ac3d43073d702.zip
fix up a number of misplace commands
* ps now on main command * sign is no longer on main commmand * ls, list no longer are valid main aliases for images * ls, list does work for podman image Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/images.go')
-rw-r--r--cmd/podman/images.go5
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")