IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d7917b08 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

fix verbosity flag

parent a995ef0d
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,8 @@ int main(int argc, char** argv) {
->group("Misc.");
app.add_flag("--force-interaction", "Force the location of the first interaction.")
->group("Misc.");
app.add_option("-v,--verbosity", "Verbosity level: warn, info, debug, trace.")
->default_val("info")
app.add_option("-v,--verbosity", "Verbosity level")
->default_str("info")
->check(CLI::IsMember({"warn", "info", "debug", "trace"}))
->group("Misc.");
......@@ -157,7 +157,7 @@ int main(int argc, char** argv) {
CLI11_PARSE(app, argc, argv);
string const loglevel =
(app.count("--verbosity") ? app["verbosity"]->as<string>() : "info");
(app.count("--verbosity") ? app["--verbosity"]->as<string>() : "info");
if (loglevel == "warn") {
logging::set_level(logging::level::warn);
} else if (loglevel == "info") {
......
......@@ -347,7 +347,7 @@ int main(int argc, char** argv) {
corsika::proposal::ContinuousProcess emContinuous(env);
InteractionCounter emCascadeCounted(emCascade);
LongitudinalProfile longprof{showerAxis};
LongitudinalProfile longprof{showerAxis, 1_g / square(1_cm)};
corsika::urqmd::UrQMD urqmd;
InteractionCounter urqmdCounted{urqmd};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment