Skip to content

Commit c48aea0

Browse files
committed
Fix version output.
1 parent 944b9d3 commit c48aea0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"fmt"
45
"io"
56
"io/ioutil"
67
"path"
@@ -113,7 +114,7 @@ func main() {
113114
// We exclude the first argument since it's just the current process path.
114115
args := os.Args[1:]
115116
if len(args) == 1 && (args[0] == "-v" || args[0] == "--version") {
116-
log.Println("runx", Version)
117+
fmt.Fprintln(os.Stderr, "runx", Version)
117118
return
118119
}
119120

0 commit comments

Comments
 (0)