]> mj.ucw.cz Git - libucw.git/commit
Opt: Rewritten formatting of help
authorMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 17:42:01 +0000 (18:42 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 17:42:01 +0000 (18:42 +0100)
commit4a2604f821344eaa3fc9bde1c8380577d93d7b1c
treef15b745fe064af2df72ef0c9ce1316f8c250d88f
parent3ddd3c4748a4022cb9c4e73215ca5280adb5ca45
Opt: Rewritten formatting of help

Previous implementation of opt_help() had several drawbacks:
First, it formatted each section separately, so the columns
did not aligh. Second, it did produced incorrect output for
options which possess only the short form.

I hope that the new implementation is cleaner and easier to extend.
ucw/opt-test.c
ucw/opt.c
ucw/opt.h