Changeset 31c708


Ignore:
Timestamp:
Jun 8, 2012, 4:24:33 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Children:
027140
Parents:
f27baf
Message:

Added command-line option "-n" to initiate input/output via network.

File:
1 edited

Legend:

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

    rf27baf r31c708  
    233233  options.enroll("o", GetLongOpt::MandatoryValue,
    234234                 "the name of the output file", 0);
     235  options.enroll("n", GetLongOpt::NoValue,
     236                 "listen for incoming object format input files", 0);
    235237  options.enroll("messagegrp", GetLongOpt::MandatoryValue,
    236238                 "which message group to use", 0);
     
    305307    chdir(options.retrieve("W"));
    306308
     309  // check that n and f/o are not given at the same time
     310  if ((options.retrieve("n")) && ((options.retrieve("f")) || (options.retrieve("o")))) {
     311    throw invalid_argument("-n must not be given with -f or -o");
     312  }
     313
    307314  // initialize keyval input
    308315  const char *object_input = options.retrieve("f");
     
    337344  if (object_input) input = object_input;
    338345  if (generic_input) input = generic_input;
     346
    339347
    340348  Ref<ParsedKeyVal> parsedkv;
Note: See TracChangeset for help on using the changeset viewer.