Skip to content

Commit c5c43af

Browse files
committed
Print an error message to stderr
Follow up on #7
1 parent 1f9f554 commit c5c43af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func newConfig() *config {
5454
c := &config{}
5555

5656
flag.StringVar(&c.socketPath, "socket", defaultSocketPath(), "a path of UNIX domain socket to listen")
57-
flag.StringVar(&c.powershellPath, "powershell-path", powershellPath(), "a path of Windows PowerShell (powershell.exe)")
57+
flag.StringVar(&c.powershellPath, "powershell-path", powershellPath(), "a path of Windows PowerShell")
5858
flag.BoolVar(&c.foreground, "foreground", false, "run in foreground mode")
5959
flag.BoolVar(&c.verbose, "verbose", false, "verbose mode")
6060
flag.StringVar(&c.logFile, "log", "", "a file path to write the log")
@@ -69,7 +69,7 @@ func newConfig() *config {
6969
flag.Parse()
7070

7171
if c.powershellPath == "" {
72-
fmt.Printf("powershell.exe not found, use the -powershell-path to customize the path.\n")
72+
fmt.Fprintln(os.Stderr, "powershell.exe not found, use the -powershell-path to customize the path.")
7373
os.Exit(1)
7474
}
7575

0 commit comments

Comments
 (0)