Unified version printing.
This commit is contained in:
parent
2be3f4256a
commit
974c94fbb0
@ -6,6 +6,7 @@
|
||||
#include <cxxopts.hpp>
|
||||
|
||||
#include <plasp-app/Utils.h>
|
||||
#include <plasp-app/Version.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@ -55,6 +56,11 @@ class Command
|
||||
std::cout << m_options.help(optionGroupNames) << std::endl;
|
||||
}
|
||||
|
||||
void printVersion()
|
||||
{
|
||||
std::cout << Version << std::endl;
|
||||
}
|
||||
|
||||
cxxopts::Options m_options;
|
||||
std::tuple<OptionGroups...> m_optionGroups;
|
||||
};
|
||||
|
@ -24,8 +24,6 @@
|
||||
#include <plasp/sas/Description.h>
|
||||
#include <plasp/sas/TranslatorASP.h>
|
||||
|
||||
#include <plasp-app/Version.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Command Translate
|
||||
@ -55,7 +53,7 @@ int CommandTranslate::run(int argc, char **argv)
|
||||
|
||||
if (basicOptions.version)
|
||||
{
|
||||
std::cout << Version << std::endl;
|
||||
printVersion();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user