diff options
| author | theimpostor <sahirhoda@gmail.com> | 2022-02-20 10:59:24 -0600 |
|---|---|---|
| committer | theimpostor <sahirhoda@gmail.com> | 2022-02-20 10:59:24 -0600 |
| commit | b246be70740497ec64eef824b6ad03e18791a787 (patch) | |
| tree | 5278f524d533587838eefac4270e5d42bf8226b2 | |
| parent | adb268e817208791d38fdc16900749224d8ad57e (diff) | |
usage text
| -rw-r--r-- | main.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() |
