]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/optutils: add err_exclusive_options()
authorKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:04:55 +0000 (09:04 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:22:35 +0000 (09:22 +0200)
commit217d20a73c6ad502292af8a4e9e1158949b62346
tree7207135a7309342d37fe0169a78ed2370f4bafb7
parent9e9bceeb504d572e085f68349620dab09a6c23ed
include/optutils: add err_exclusive_options()

This is improved implementation of exclusive_option(). The new
implementation:

  - uses regular struct option to compose error messages
  - relationships between options are described in one const static array
  - the current status is stored in one int array

Signed-off-by: Karel Zak <kzak@redhat.com>
include/optutils.h