bin: factor version display.

* src/bin/common_setup.cc (display_version): New function.
(setup): Hook the display_version function.
(argp_program_bug_address): Define this common variable here.
* src/bin/genltl.cc, src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc,
src/bin/ltlfilt.cc, src/bin/randltl.cc (argp_program_bug_address,
argp_program_version): Remove these definitions.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-29 17:34:53 +02:00
parent 489f719dc1
commit 7854f629e5
6 changed files with 17 additions and 55 deletions

View file

@ -81,7 +81,6 @@
#include "common_output.hh"
#include "common_range.hh"
#include "misc/_config.h"
#include <cassert>
#include <iostream>
#include <sstream>
@ -96,16 +95,6 @@
using namespace spot;
using namespace spot::ltl;
const char* argp_program_version = "\
genltl (" SPOT_PACKAGE_STRING ")\n\
\n\
Copyright (C) 2012 Laboratoire de Recherche et Développement de l'Epita.\n\
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,\n\
to the extent permitted by law.";
const char* argp_program_bug_address = "<" SPOT_PACKAGE_BUGREPORT ">";
const char argp_program_doc[] ="\
Generate temporal logic formulas from predefined scalable patterns.";