add description + positional arg to help text

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-06-03 11:42:22 -04:00
parent fcdf6c58ec
commit 1a9c31ca4c
No known key found for this signature in database
GPG key ID: 5CB45AE22BAB7EA7

View file

@ -4,13 +4,16 @@ import (
"fmt"
"os"
"github.com/anchore/grype/internal"
"github.com/anchore/grype/grype/db"
"github.com/spf13/cobra"
)
var dbImportCmd = &cobra.Command{
Use: "import",
Use: "import FILE",
Short: "import a vulnerability database archive",
Long: fmt.Sprintf("import a vulnerability database archive from a local FILE.\nDB archives can be obtained from %q.", internal.DBUpdateURL),
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
ret := runDbImportCmd(cmd, args)