append-lines: parse options in a single switch/case loop

The option handling validated arguments with a chain of strcmp() on argv
and a separate scan for -h. Replace it with one cleaner switch/case loop.
1 file changed