Assimilator: don't error out if unrecognized args

(app-specific code might parse them)
This commit is contained in:
David Anderson 2014-11-12 09:58:14 -08:00
parent 9b79d9504b
commit ecc5ef9496
1 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,6 @@
// This file is part of BOINC. // This file is part of BOINC.
// http://boinc.berkeley.edu // http://boinc.berkeley.edu
// Copyright (C) 2008 University of California // Copyright (C) 2014 University of California
// //
// BOINC is free software; you can redistribute it and/or modify it // BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License // under the terms of the GNU Lesser General Public License
@ -15,11 +15,9 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>. // along with BOINC. If not, see <http://www.gnu.org/licenses/>.
// This is a framework for an assimilator. // Main program for an assimilator.
// You need to link this with an (application-specific) function // Link this with an application-specific function assimilate_handler()
// assimilate_handler() // See http://boinc.berkeley.edu/trac/wiki/AssimilateIntro
// in order to make a complete program.
//
#include "config.h" #include "config.h"
#include <cstring> #include <cstring>
@ -258,8 +256,8 @@ int main(int argc, char** argv) {
} else if (is_arg(argv[i], "transcripts_prefix")) { } else if (is_arg(argv[i], "transcripts_prefix")) {
transcripts_prefix=argv[++i]; transcripts_prefix=argv[++i];
} else { } else {
log_messages.printf(MSG_CRITICAL, "Unrecognized arg: %s\n", argv[i]); // project-specific part might parse extra args
usage(argv); //log_messages.printf(MSG_CRITICAL, "Unrecognized arg: %s\n", argv[i]);
} }
} }