From 4fc0f039fc7c8cbcb47ea38e08c64446693458d4 Mon Sep 17 00:00:00 2001 From: Tim De Pauw Date: Tue, 24 Apr 2018 18:34:47 +0200 Subject: [PATCH] Include name in --version output to be in line with wc --- cmd/lwc/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lwc/main.go b/cmd/lwc/main.go index fb02936..8fa674e 100644 --- a/cmd/lwc/main.go +++ b/cmd/lwc/main.go @@ -264,7 +264,7 @@ func main() { switch { case config.version: // Print version and exit - fmt.Println(version) + fmt.Printf("lwc %s\n", version) case config.help: // Print usage and exit getopt.PrintUsage(os.Stdout)