Changeset 2fbba84
- Timestamp:
- Jul 10, 2012, 3:45:22 PM (13 years ago)
- Children:
- 035791
- Parents:
- 516fb4
- File:
-
- 1 edited
-
src/bin/mpqc/mpqc.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/bin/mpqc/mpqc.cc
r516fb4 r2fbba84 363 363 const char *&generic_input, 364 364 GetLongOpt &options, 365 int optind, 365 366 int argc, 366 367 char **argv) … … 375 376 generic_input = argv[optind]; 376 377 } 377 else {378 else if (!options.retrieve("n")) { 378 379 options.usage(); 379 380 throw invalid_argument("extra arguments given"); … … 383 384 generic_input = "mpqc.in"; 384 385 } 385 else if (object_input && generic_input) {386 else if (object_input && !options.retrieve("n") && generic_input) { 386 387 options.usage(); 387 388 throw invalid_argument("only one of -f and a file argument can be given"); … … 1517 1518 const char *object_input = 0; 1518 1519 const char *generic_input = 0; 1519 getInputFileNames(object_input, generic_input, options, argc, argv);1520 getInputFileNames(object_input, generic_input, options, optind, argc, argv); 1520 1521 const char *input; 1521 1522 if (object_input) input = object_input;
Note:
See TracChangeset
for help on using the changeset viewer.
