Skip to content
Snippets Groups Projects
Commit 25fcda06 authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

cmd: print help directly, not as log.Info()

parent 85edd512
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
var fErr *flags.Error var fErr *flags.Error
if errors.As(err, &fErr) { if errors.As(err, &fErr) {
if fErr.Type == flags.ErrHelp { if fErr.Type == flags.ErrHelp {
log.Info().Err(err).Msg("") fmt.Println(fErr.Message)
} else { } else {
return fmt.Errorf("failed to parse: %w", err) return fmt.Errorf("failed to parse: %w", err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment