Skip to content

Commit 3e695d6

Browse files
authored
licensecan: Fix go.mod so we can go run (#3616)
Also mark the --binary flag as required (to avoid a cryptic error message).
1 parent a727de1 commit 3e695d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/licensescan/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module licensescan
1+
module github.com/GoogleContainerTools/kpt/tools/licensescan
22

33
go 1.18
44

tools/licensescan/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func buildLicenseScanCommand() *cobra.Command {
7878
}
7979

8080
cmd.Flags().StringVar(&opts.Binary, "binary", opts.Binary, "binary to analyze")
81+
cmd.MarkFlagRequired("binary")
8182

8283
cmd.Flags().BoolVar(&opts.IncludeLicenses, "print", opts.IncludeLicenses, "include license text")
8384

0 commit comments

Comments
 (0)