From: Arnaud Giersch Date: Thu, 6 Jan 2011 08:04:27 +0000 (+0100) Subject: Fix error reporting in opt::parse_args. X-Git-Tag: v0.1~201 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/5c7c048885373897b33b2761df42444eb5b24640?ds=inline;hp=-c Fix error reporting in opt::parse_args. --- 5c7c048885373897b33b2761df42444eb5b24640 diff --git a/options.cpp b/options.cpp index 827a064..56049ed 100644 --- a/options.cpp +++ b/options.cpp @@ -176,7 +176,8 @@ bool opt::parse_args(int* argc, char* argv[]) 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