Skip to content

Commit

Permalink
Merge pull request #19 from Semnodime/patch-1
Browse files Browse the repository at this point in the history
Print error to stderr in core.go
  • Loading branch information
takeshixx authored Apr 21, 2024
2 parents cdefd6f + 2013937 commit 15b7f8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ func RunCLI() {
var err error
cmd := flag.Arg(0)
if !plugins.CmdAvailable(cmd) {
fmt.Println("Inavlid cmd", cmd)
fmt.Fprintln(os.Stderr, "Invalid cmd", cmd)
return
}

plugin := plugins.GetForCmd(cmd)
if strings.HasPrefix(cmd, ".") {
plugin.Unprocess = true
Expand Down

0 comments on commit 15b7f8b

Please sign in to comment.