mirror of
https://github.com/anchore/grype
synced 2024-11-10 14:44:12 +00:00
add description + positional arg to help text
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
fcdf6c58ec
commit
1a9c31ca4c
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue