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.
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.
The problem is that
/-owill 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
lessis built withPCRE2therefore I can do/-o\b.