Skip to content

Commit

Permalink
fix: shell completion by adding missing usage message required by spf…
Browse files Browse the repository at this point in the history
…13/cobra (#1688)

Signed-off-by: DanHam <DanHam@users.noreply.github.com>
  • Loading branch information
DanHam authored Mar 22, 2023
1 parent 829a71c commit d02c56a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/syft/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d02c56a

Please sign in to comment.