From 6ce47bc441c529157a9d489466f4356e4e2449f7 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 22 Mar 2023 17:45:09 +0000 Subject: [PATCH] fix: shell completion by adding missing usage message required by spf13/cobra (#1688) Signed-off-by: DanHam --- cmd/syft/cli/commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/syft/cli/commands.go b/cmd/syft/cli/commands.go index cc80b97aa347..39e3ab01257f 100644 --- a/cmd/syft/cli/commands.go +++ b/cmd/syft/cli/commands.go @@ -55,6 +55,7 @@ func New() (*cobra.Command, error) { // rootCmd is currently an alias for the packages command rootCmd := &cobra.Command{ + Use: fmt.Sprintf("%s [SOURCE]", internal.ApplicationName), Short: packagesCmd.Short, Long: packagesCmd.Long, Args: packagesCmd.Args,