bin: use enums instead of #define for option codes

* src/bin/autfilt.cc, src/bin/common_aoutput.cc,
src/bin/common_finput.cc, src/bin/common_output.cc,
src/bin/common_post.cc, src/bin/common_setup.cc,
src/bin/common_trans.cc, src/bin/dstar2tgba.cc, src/bin/genltl.cc,
src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc, src/bin/ltlcross.cc,
src/bin/ltlfilt.cc, src/bin/ltlgrind.cc, src/bin/randaut.cc,
src/bin/randltl.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-02 16:55:56 +01:00
parent a530498fbd
commit 8658441839
16 changed files with 182 additions and 149 deletions

View file

@ -57,9 +57,12 @@ setup(char** argv)
// I mean, come on, why not also add -* to Darwinise more shell users?
// We disable this option as well as -V (because --version don't need
// a short version).
#define OPT_VERSION 1
#define OPT_HELP 2
#define OPT_USAGE 3
enum {
OPT_HELP = 1,
OPT_USAGE,
OPT_VERSION,
};
static const argp_option options[] =
{
{ "version", OPT_VERSION, 0, 0, "print program version", -1 },