walles / moar

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

Fix +number flag handling #158

Closed mtvrsh closed 1 year ago

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

Oops. Thanks for the fix!