X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e3c678215b3df16d01f50325c346b8845930552c..6ff0fa0bf05608ab7edd5e2a5555f7f2eff71da5:/options.cpp diff --git a/options.cpp b/options.cpp index 827a064..c4ae59a 100644 --- a/options.cpp +++ b/options.cpp @@ -170,13 +170,14 @@ bool opt::parse_args(int* argc, char* argv[]) int c; opterr = 0; - while ((c = getopt(*argc, argv, "a:bc:C:ehi:I:l:L:N:T:vV")) != -1) { + while ((c = getopt(*argc, argv, "a:bc:C:ehi:I:l:L:N:s:T:vV")) != -1) { switch (c) { case 'a': opt::loba_algo = optarg; result = opt_helper::nol_find_prefix(opt::loba_algorithms, "load balancing algorithm", - opt::loba_algo); + opt::loba_algo) + && result; break; case 'b': opt::bookkeeping = true; @@ -213,7 +214,8 @@ bool opt::parse_args(int* argc, char* argv[]) case 'T': opt::auto_depl::topology = optarg; result = opt_helper::nol_find_prefix(opt::topologies, "topology", - opt::auto_depl::topology); + opt::auto_depl::topology) + && result; break; case 'v': // nothing to do: this option is checked at the very @@ -369,6 +371,8 @@ void opt::usage() << " proc : messages from base process class\n" << " loba : messages from load-balancer\n"; + // std::clog << "\nMiscellaneous low-level parameters\n"; + #undef so_list #undef so #undef o