Skip to content

Commit 909fd03

Browse files
committed
chore: swap debugging logger with stderr printer
removes the logger as most of the logical part has been now tested
1 parent e0ce9c6 commit 909fd03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
_ "embed"
55
"fmt"
6-
"log"
76
"os"
87

98
"github.com/barelyhuman/commitlog/commands"
@@ -88,7 +87,8 @@ func main() {
8887
Name: "path",
8988
Value: ".",
9089
Aliases: []string{"p"},
91-
Usage: "root with the '.git' folder `PATH`",
90+
Usage: "`PATH` to a folder where .commitlog.release exists or is to be created." +
91+
"(note: do not use `--commit` or `--push` if the file isn't in the root)",
9292
},
9393
&cli.BoolFlag{
9494
Name: "pre",
@@ -137,6 +137,6 @@ func main() {
137137

138138
err := app.Run(os.Args)
139139
if err != nil {
140-
log.Fatal(err)
140+
fmt.Fprintf(os.Stderr, "[commitlog] %v", err)
141141
}
142142
}

0 commit comments

Comments
 (0)