walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

Fix +number flag handling #158

Closed mtvrsh closed 9 months ago

mtvrsh commented 9 months ago

In v.0.17.0 only moar file +123 works and after this moar +123 file works too. Flags after +123 aren't parsed anyway, eg: moar +123 -trace file fails, so it's not really a proper fix :) I guess flagset.Parse could be called again after parsing + flag but I haven't looked into it more.

walles commented 9 months ago

Oops. Thanks for the fix!