Skip to content

Commit

Permalink
Use std lib function for printing warning to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Dec 17, 2024
1 parent 6a38979 commit d64bb7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ func CliArgsMap() map[string]any {

if !strings.HasPrefix(key, "--") {
// ignore positional arguments
println("Ignoring positional CLI argument (positional arguments are unsupported):", key)
_, _ = fmt.Fprintf(
os.Stderr,
"Ignoring positional CLI argument (positional arguments are unsupported): %s\n",
key,
)
continue
}

Expand Down

0 comments on commit d64bb7b

Please sign in to comment.