From b246be70740497ec64eef824b6ad03e18791a787 Mon Sep 17 00:00:00 2001 From: theimpostor Date: Sun, 20 Feb 2022 10:59:24 -0600 Subject: usage text --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index e0514bd..2258b5a 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,6 @@ import ( "io" "log" "os" - "strings" ) func encode(fname string, encoder io.WriteCloser) { @@ -34,12 +33,12 @@ func main() { var fnames []string flag.Usage = func() { - template := ` -Usage: + template := `Usage: %s [file1 [...fileN]] Copies file contents to system clipboard using the ANSI OSC52 escape sequence. -With no arguments, will read from stdin.` - fmt.Fprintf(flag.CommandLine.Output(), strings.TrimSpace(template), os.Args[0]) +With no arguments, will read from stdin. +` + fmt.Fprintf(flag.CommandLine.Output(), template, os.Args[0]) } flag.Parse() -- cgit v1.2.3