X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fex_router_flexml.cpp;h=6efa19a1cbea255a51e8d27476ba4d13148a79a6;hb=73f37c91c144b070020df2f27472c09b62367acf;hp=46c9a93c1994a06f686a4f2914f59ae1cad7bc7b;hpb=c1d953eee6c00432493bc364da6284704ccd9cc2;p=metaproxy-moved-to-github.git diff --git a/src/ex_router_flexml.cpp b/src/ex_router_flexml.cpp index 46c9a93..6efa19a 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-2011 Index Data + Copyright (C) 2005-2012 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);