X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fex_router_flexml.cpp;h=79165406111cedbff8f4892df80d5ab2c7d5f16d;hb=541dca64a8e7b495045a8ac4068f8e15eb12b303;hp=c3efe78843b56374b6f00028523764beafb34b8c;hpb=126d4a93355f95766cd1501ed1255b92e6171f33;p=metaproxy-moved-to-github.git diff --git a/src/ex_router_flexml.cpp b/src/ex_router_flexml.cpp index c3efe78..7916540 100644 --- a/src/ex_router_flexml.cpp +++ b/src/ex_router_flexml.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -32,13 +32,13 @@ namespace mp = metaproxy_1; int main(int argc, char **argv) { - try + try { int ret; char *arg; char *fname = 0; - while ((ret = options("h{help}c{config}:", + while ((ret = options("h{help}c{config}:", argv, argc, &arg)) != -2) { switch(ret) @@ -77,7 +77,7 @@ int main(int argc, char **argv) mp::RouterFleXML router(doc, factory, false, 0); mp::Package pack; - + pack.router(router).move(); xmlFreeDoc(doc);