diff --git a/dis/src/pythia_dis.cc b/dis/src/pythia_dis.cc index 54cd5a119833ec3b85b02d6dedce0e6d0b2060ba..6736f49f690f78bc83bd5f4c01649631f0139661 100644 --- a/dis/src/pythia_dis.cc +++ b/dis/src/pythia_dis.cc @@ -65,10 +65,10 @@ void print_man_page(T cli, const char* argv0) settings cmdline_settings(int argc, char* argv[]) { settings s; auto lastOpt = - " options:" % (option("-h", "--help").set(s.selected, mode::help) % "show help"), + " options:" % (option("-h", "--help").set(s.selected, mode::help) % "show help", value("file", s.outfile).if_missing([] { std::cout << "You need to provide an output filename argument!\n"; - }) % "output file"; + }) % "output file"); auto cli = (command("help").set(s.selected, mode::help) | lastOpt);