Please add a comma to your short options (-o, --option). This makes it easier to look it up.

Just something i wanted Linuxers to be aware of.

  • a14o@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    6 hours ago

    The problem is that /-o will also match something like --my-irrelevant-option.

    Word boundaries match the end (or the beginning) of the word.

    How exactly to do it depends on the regex library, my less is built with PCRE2 therefore I can do /-o\b.