Skip to content

Commit

Permalink
cmdline: Error out on unknown options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberon00 committed Apr 1, 2016
1 parent c63342a commit 176ab7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ CmdLineArgs CmdLineArgs::parse(int argc, char const* const* argv)
foundCmd = true;
++i;
break;
} else {
throw std::runtime_error(std::string("Bad argument ") + argv[i]);
}
}

Expand Down

0 comments on commit 176ab7b

Please sign in to comment.