Back to the main page.

Bug 751 - command line options are not correctly parsed

Status CLOSED FIXED
Reported 2011-06-09 17:03:00 +0200
Modified 2011-07-13 14:47:02 +0200
Product: FieldTrip
Component: peer
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2011-06-09 17:03:05 +0200

Now when I try to run the --help I get this: niels@gb-r35n18:~/matlab/fieldtrip-20110526/peer/bin$ ./peerslave.glnxa64 --help peerslave[9753]: peerinit: niels@gb-r35n18.irc.sara.nl, id = 2887682376 parser: cannot open file --help peerslave[9753]: cannot read the configuration file Hmm, this is not good. It appears that it misinterprets the cmd line option. And when I try to do --number 8: niels@gb-r35n18:~/matlab/fieldtrip-20110526/peer/bin$ ./peerslave.glnxa64 --number 8 peerslave[9759]: peerinit: niels@gb-r35n18.irc.sara.nl, id = 3997336815 ./peerslave.glnxa64: unrecognized option '--number' peerslave[9759]: invalid command line options Again here the cmd line option is misinterpreted. This one I can reproduce roboos@mentat258> ../bin/peerslave.glnxa64 --number 8 peerslave[14690]: peerinit: roboos@mentat258.dccn.nl, id = 2375758516 ../bin/peerslave.glnxa64: unrecognized option `--number' peerslave[14690]: invalid command line options


Robert Oostenveld - 2011-06-09 19:42:57 +0200

I tracked it down and fixed it. The --number option was still listed in the help, but is actually not supported any more. To allow multiple peers, you will have to use the config file. The reason for dropping the --number option is that it does not allow different specs for the peers (such as different memavail or timavail options). The lack of support for the --help option was due to incorrectly parsing the command line, this is also fixed.


Robert Oostenveld - 2011-07-13 14:47:02 +0200

changed the status for a whole bunch of resolved bugs to CLOSED