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:
@ -2,10 +2,16 @@
|
||||
#include <cstdlib>
|
||||
|
||||
#include "cpn/CampaignManager.hpp"
|
||||
#include "util/CommandLine.hpp"
|
||||
#include "campaign.hpp"
|
||||
|
||||
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;
|
||||
return !fail::campaignmanager.runCampaign(&c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user