summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authortheimpostor <sahirhoda@gmail.com>2022-02-20 10:59:24 -0600
committertheimpostor <sahirhoda@gmail.com>2022-02-20 10:59:24 -0600
commitb246be70740497ec64eef824b6ad03e18791a787 (patch)
tree5278f524d533587838eefac4270e5d42bf8226b2 /main.go
parentadb268e817208791d38fdc16900749224d8ad57e (diff)
usage text
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 4 insertions, 5 deletions
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()