diff options
Diffstat (limited to '.config/wmii-hg')
-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 { |