lizmat / App-Rak

21st century grep / find / ack / ag / rg on steroids
https://raku.land/zef:lizmat/App::Rak
Artistic License 2.0
154 stars 8 forks source link

The --find option throws warnings without "human" set to True #31

Closed 2colours closed 2 years ago

2colours commented 2 years ago

Hello,

I came across this issue while combining rak with my own text processing. Thanks to the talkative traces, I found the problem: the $only-first variable stays undefined when the "human" option is on False (either due to --no-human or no tty attached), however, find still relies on that, instead of $stop-after which is used everywhere else.

I think it's really only that; perhaps I can make a PR for it soon but it irked me enough to note it right now. :P

lizmat commented 2 years ago

Good catch! Indeed, that was the problem. Fixed in the next release!

lizmat commented 2 years ago

Fixed with https://github.com/lizmat/App-Rak/commit/8bcf1d0a3d