Changeset 2fbba84


Ignore:
Timestamp:
Jul 10, 2012, 3:45:22 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Children:
035791
Parents:
516fb4
Message:

tempcommit: getInputFileNames() needs optind.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/bin/mpqc/mpqc.cc

    r516fb4 r2fbba84  
    363363    const char *&generic_input,
    364364    GetLongOpt &options,
     365    int optind,
    365366    int argc,
    366367    char **argv)
     
    375376    generic_input = argv[optind];
    376377  }
    377   else {
     378  else if (!options.retrieve("n")) {
    378379    options.usage();
    379380    throw invalid_argument("extra arguments given");
     
    383384    generic_input = "mpqc.in";
    384385    }
    385   else if (object_input && generic_input) {
     386  else if (object_input && !options.retrieve("n") && generic_input) {
    386387    options.usage();
    387388    throw invalid_argument("only one of -f and a file argument can be given");
     
    15171518  const char *object_input = 0;
    15181519  const char *generic_input = 0;
    1519   getInputFileNames(object_input, generic_input, options, argc, argv);
     1520  getInputFileNames(object_input, generic_input, options, optind, argc, argv);
    15201521  const char *input;
    15211522  if (object_input) input = object_input;
Note: See TracChangeset for help on using the changeset viewer.