read name section read synopsis section read description section read options section is there a line starting with \- read to next \- or read to line starting (no whitespace) in bold can use shell completion for implementation of this. :)