From 22d1e33541d1d02de5bbc53ced8ccea5e3db4e91 Mon Sep 17 00:00:00 2001 From: mgechev Date: Fri, 26 Jan 2018 20:57:51 -0800 Subject: [PATCH] Add help --- main.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/main.go b/main.go index 03ff34c..72420f3 100644 --- a/main.go +++ b/main.go @@ -78,6 +78,22 @@ func normalizeConfig(config *lint.Config) { } } +const usage = ` +Welcome to: + _ __ _____ _(_)__ _____ +| '__/ _ \ \ / / \ \ / / _ \ +| | | __/\ V /| |\ V / __/ +|_| \___| \_/ |_| \_/ \___| + +Usage: + revive [flags] ... +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() { src := ` package p