diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go index 2fdc3e3..cfb9489 100644 --- a/cmd/humanlog/main.go +++ b/cmd/humanlog/main.go @@ -438,8 +438,10 @@ func newApp() *cli.App { signal.Ignore(os.Interrupt) } - if len(*cfg.Skip) > 0 && len(*cfg.Keep) > 0 { - fatalf(cctx, "can only use one of %q and %q", skipFlag.Name, keepFlag.Name) + if cfg.Skip != nil && cfg.Keep != nil { + if len(*cfg.Skip) > 0 && len(*cfg.Keep) > 0 { + fatalf(cctx, "can only use one of %q and %q", skipFlag.Name, keepFlag.Name) + } } sinkOpts, errs := stdiosink.StdioOptsFrom(*cfg)