From 35df96c4f85f318b15c9fa0875a8788c905f03b6 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 8 Jun 2021 17:51:57 +0200 Subject: [PATCH] Fix short help with analyzeCmd and diffCmd Fixes "unknown command" errors when using it as described previously. --- cmd/analyze.go | 2 +- cmd/diff.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/analyze.go b/cmd/analyze.go index 2faaba6b..6e4e07fb 100644 --- a/cmd/analyze.go +++ b/cmd/analyze.go @@ -30,7 +30,7 @@ import ( var analyzeCmd = &cobra.Command{ Use: "analyze image", - Short: "Analyzes an image: container-diff image", + Short: "Analyzes an image: container-diff analyze image", Long: `Analyzes an image using the specifed analyzers as indicated via --type flag(s). For details on how to specify images, run: container-diff help`, diff --git a/cmd/diff.go b/cmd/diff.go index 89736ba3..4d06fcc5 100644 --- a/cmd/diff.go +++ b/cmd/diff.go @@ -35,7 +35,7 @@ var filename string var diffCmd = &cobra.Command{ Use: "diff image1 image2", - Short: "Compare two images: container-diff image1 image2", + Short: "Compare two images: container-diff diff image1 image2", Long: `Compares two images using the specifed analyzers as indicated via --type flag(s). For details on how to specify images, run: container-diff help`,