Skip to content
Snippets Groups Projects
Commit 8afea6b5 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: src/pythia_dis.cc

parent 6e803b39
Branches
No related tags found
No related merge requests found
...@@ -65,10 +65,10 @@ void print_man_page(T cli, const char* argv0) ...@@ -65,10 +65,10 @@ void print_man_page(T cli, const char* argv0)
settings cmdline_settings(int argc, char* argv[]) { settings cmdline_settings(int argc, char* argv[]) {
settings s; settings s;
auto lastOpt = 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([] { value("file", s.outfile).if_missing([] {
std::cout << "You need to provide an output filename argument!\n"; std::cout << "You need to provide an output filename argument!\n";
}) % "output file"; }) % "output file");
auto cli = auto cli =
(command("help").set(s.selected, mode::help) | lastOpt); (command("help").set(s.selected, mode::help) | lastOpt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment