weather-monitor: command line parameter are forwarded now

Parameters that are specified on the command line are now also forwarded.

Change-Id: I0e636f14dba43ef7877ce6e6deca1abb1f00a8a6
This commit is contained in:
Richard Hellwig
2014-01-03 16:36:42 +01:00
parent 0907dfb0ae
commit 34065fea60

View File

@ -2,10 +2,16 @@
#include <cstdlib> #include <cstdlib>
#include "cpn/CampaignManager.hpp" #include "cpn/CampaignManager.hpp"
#include "util/CommandLine.hpp"
#include "campaign.hpp" #include "campaign.hpp"
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
fail::CommandLine &cmd = fail::CommandLine::Inst();
for (int i = 1; i < argc; ++i) {
cmd.add_args(argv[i]);
}
WeatherMonitorCampaign c; WeatherMonitorCampaign c;
return !fail::campaignmanager.runCampaign(&c); return !fail::campaignmanager.runCampaign(&c);
} }