Commit 17e51a11 authored by Tomek Mrugalski's avatar Tomek Mrugalski Committed by Francis Dupont

[#148,!80] When run without arguments netconf,d2,ca prints out usage.

parent 608755f4
...@@ -221,6 +221,11 @@ DControllerBase::checkConfigOnly() { ...@@ -221,6 +221,11 @@ DControllerBase::checkConfigOnly() {
void void
DControllerBase::parseArgs(int argc, char* argv[]) DControllerBase::parseArgs(int argc, char* argv[])
{ {
if (argc == 1) {
isc_throw(InvalidUsage, "");
}
// Iterate over the given command line options. If its a stock option // Iterate over the given command line options. If its a stock option
// ("c" or "d") handle it here. If its a valid custom option, then // ("c" or "d") handle it here. If its a valid custom option, then
// invoke customOption. // invoke customOption.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment