mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
Add help
This commit is contained in:
parent
5ec3daa762
commit
22d1e33541
16
main.go
16
main.go
@ -78,6 +78,22 @@ func normalizeConfig(config *lint.Config) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const usage = `
|
||||||
|
Welcome to:
|
||||||
|
_ __ _____ _(_)__ _____
|
||||||
|
| '__/ _ \ \ / / \ \ / / _ \
|
||||||
|
| | | __/\ V /| |\ V / __/
|
||||||
|
|_| \___| \_/ |_| \_/ \___|
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
revive [flags] <Go file or directory> ...
|
||||||
|
Flags:
|
||||||
|
-c string path to the configuration TOML file.
|
||||||
|
-e string glob which specifies files to be excluded.
|
||||||
|
-f string formatter to be used for the output.
|
||||||
|
-h output this screen.
|
||||||
|
`
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
src := `
|
src := `
|
||||||
package p
|
package p
|
||||||
|
Loading…
Reference in New Issue
Block a user