IAP GITLAB

corsika.cpp breaks at runtime

There seems to have been a copy-paste error in example/corsika.cpp

  app.add_option("-v,--verbosity", "Verbosity level")
      ->default_str("info")
      ->check(CLI::IsMember({"warn", "info", "debug", "trace"}))
      ->group("Misc.");
  app.add_option("-v,--verbosity", "Verbosity level: warn, info, debug, trace.")
      ->default_val("info")
      ->check(CLI::IsMember({"warn", "info", "debug", "trace"}))
      ->group("Misc.");

that is the option "verbosity" is added twice. This breaks at runtime:

./bin/corsika 
terminate called after throwing an instance of 'CLI::OptionAlreadyAdded'
  what():  added option matched existing option name: v is already added
Aborted (core dumped)

Or I am reading things wrong again 😄 If this is real it begs the question how often do we run the examples during CI?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information