Skip to content

Commit 8faec2b

Browse files
authored
Merge pull request #54 from jeremyrickard/print-outline-usage
Update and show help on missing file for outline subcommand
2 parents f396ef4 + 1add92a commit 8faec2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/bom/cmd/document.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ bom will try to add useful information to the oultine but, if needed, you can
5151
set the --spdx-ids to only output the IDs of the entities.
5252
5353
`,
54-
Use: "outline",
54+
Use: "outline SPDX_FILE",
5555
SilenceUsage: true,
5656
SilenceErrors: true,
5757
PersistentPreRunE: initLogging,
5858
RunE: func(cmd *cobra.Command, args []string) error {
5959
if len(args) != 1 {
60+
cmd.Help() // nolint:errcheck
6061
return errors.New("You should only specify one file")
6162
}
6263
doc, err := spdx.OpenDoc(args[0])

0 commit comments

Comments
 (0)