Skip to content
Snippets Groups Projects
Commit f908e547 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Cosmetic clean-up and preparing CLI migration

parent 30d80144
No related branches found
No related tags found
No related merge requests found
......@@ -122,10 +122,12 @@ void computeExplicitFluxes(const Kokkos::View<double*>& xr,
#warning clean-up and add warning message when release version is run
int main(int argc, char *argv[])
{
long unsigned number = 10;
{
CLI::App app{"Pastis help"};
long unsigned number = 10;
app.add_option("number,-n,--number", number, "Number of cells");//->required();
bool disable_fpe = false;
app.add_flag("--no-fpe", disable_fpe, "Do not trap floating point exceptions");
......@@ -148,9 +150,8 @@ int main(int argc, char *argv[])
ConsoleManager::init(colorize);
FPEManager::init(not disable_fpe);
SignalManager::init(not disable_signals);
}
std::cout << "colorize=" << colorize << '\n';
std::cout << "Code version: "
<< rang::style::bold << RevisionInfo::version() << rang::style::reset << '\n';
......@@ -164,6 +165,7 @@ int main(int argc, char *argv[])
<< rang::style::bold << RevisionInfo::gitTag() << rang::style::reset << '\n';
std::cout << "HEAD: " << rang::style::bold << RevisionInfo::gitHead() << rang::style::reset << '\n';
std::cout << "hash: " << rang::style::bold << RevisionInfo::gitHash() << rang::style::reset << " (";
if (RevisionInfo::gitIsClean()) {
std::cout << rang::fgB::green << "clean" << rang::fg::reset;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment