lizmat / App-Rak

21st century grep / find / ack / ag / rg on steroids
Artistic License 2.0
152 stars 7 forks source link

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

Closed 2colours closed 1 year ago

2colours commented 1 year 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 1 year ago

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

lizmat commented 1 year ago

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