diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-01-29 13:37:24 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-03-21 14:12:58 -0400 |
commit | affee5f76f0cd83ec28179b30456f311b82ea450 (patch) | |
tree | 2936089b753325523df430f2d4283188bcde4526 /.config/wmii-hg/rbar_util | |
parent | ea2d3c215b3b781a5a07a6e8ea51de51c580faf1 (diff) |
wmii: rbar_util (go): fix messages
Diffstat (limited to '.config/wmii-hg/rbar_util')
-rw-r--r-- | .config/wmii-hg/rbar_util/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/wmii-hg/rbar_util/main.go b/.config/wmii-hg/rbar_util/main.go index 5fccd7e..2358dca 100644 --- a/.config/wmii-hg/rbar_util/main.go +++ b/.config/wmii-hg/rbar_util/main.go @@ -19,7 +19,7 @@ type Impl struct { func gerror(status int, err error, format string, a ...interface{}) { msg := fmt.Sprintf(format, a...) if err == nil { - fmt.Fprintf(os.Stderr, "%s: %s", os.Args[0], msg) + fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], msg) } else { fmt.Fprintf(os.Stderr, "%s: %s: %v", os.Args[0], msg, err) } @@ -35,7 +35,7 @@ func errusage(fmt string, a ...interface{}) { } func usage(w io.Writer) { - fmt.Fprintf(w, "Usage: %[1]v NN_LABEL\n or: %[1]v BTN_ID\n or: %[1]v -h\n", os.Args[0]) + fmt.Fprintf(w, "Usage: %[1]v NN_LABEL\n or: %[1]v BTN_ID\n or: %[1]v -h\n", os.Args[0]) } func Main(impl Impl) { @@ -59,7 +59,7 @@ func Main(impl Impl) { fn = func() error { return impl.Update(arg) } } } else { - errusage("invalid argument: %s\n", os.Args[1]) + errusage("invalid argument: %s", os.Args[1]) } } if fn == nil { |