README: update usage options
This commit is contained in:
committed by
Will Norris
parent
eadb73ac0d
commit
09bb508a55
12
README.md
12
README.md
@@ -16,12 +16,14 @@ addlicense requires go 1.16 or later.
|
|||||||
|
|
||||||
addlicense [flags] pattern [pattern ...]
|
addlicense [flags] pattern [pattern ...]
|
||||||
|
|
||||||
-c copyright holder (defaults to "Google LLC")
|
-c copyright holder (default "Google LLC")
|
||||||
-f custom license file (no default)
|
-check check only mode: verify presence of license headers and exit with non-zero code if missing
|
||||||
-l license type: apache, bsd, mit, mpl (defaults to "apache")
|
-f license file
|
||||||
-y year (defaults to current year)
|
|
||||||
-check check only mode: verify presence of license headers and exit with non-zero code if missing
|
|
||||||
-ignore file patterns to ignore, for example: -ignore **/*.go -ignore vendor/**
|
-ignore file patterns to ignore, for example: -ignore **/*.go -ignore vendor/**
|
||||||
|
-l license type: apache, bsd, mit, mpl (default "apache")
|
||||||
|
-s Include SPDX identifier in license header. Set -s=only to only include SPDX identifier.
|
||||||
|
-v verbose mode: print the name of the files that are modified
|
||||||
|
-y copyright year(s) (default "2022")
|
||||||
|
|
||||||
The pattern argument can be provided multiple times, and may also refer
|
The pattern argument can be provided multiple times, and may also refer
|
||||||
to single files. Directories are processed recursively.
|
to single files. Directories are processed recursively.
|
||||||
|
|||||||
Reference in New Issue
Block a user