Ingo Schwarze wrote: > CVSROOT: /cvs > Module name: src > Changes by: schwa...@cvs.openbsd.org 2017/03/20 08:30:43 > > Modified files: > usr.bin/mandoc : main.c mandoc.1 > > Log message: > Silently ignore invalid -m input formats rather than erroring out. > As observed by Jan Stary <hans at stare dot cz>, this is useful such > that after 'alias man="man -m $HOME/man"', 'man -l foo.1' still works. > Simplify and shorten the description of -m, and use .Ic for macros.
Might I suggest separating the getopt loops per utility? I notice mandoc silently accepts -Mandoc which I think has no effect, but typically unrecognized options result in errors.