]> mj.ucw.cz Git - libucw.git/commit
Opt: Cleaned up opt-conf
authorMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 19:05:15 +0000 (20:05 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 19:05:15 +0000 (20:05 +0100)
commit924caf6f42990dc99c1d7e4a954da1533e37e537
treef2491a783f48be658a24b08495891f16d49cd135
parentac5c029143b60498116adbea326eb7b3ce6fa160
Opt: Cleaned up opt-conf

First of all, the names of configuration options are no longer
fixed. Each of these options has its own handler and as long as
OPT_CONF_HOOK is used, the caller is free to define configuration
options with the names and help texts of his choice.

The same applies to --help.

To achieve these goals, the OPT_BEFORE_CONFIG flag has been
introduced.
tools/libucw.api
ucw/opt-conf.c
ucw/opt-help.c
ucw/opt-test.c
ucw/opt.h
ucw/opt.t