mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
31 lines
693 B
C++
31 lines
693 B
C++
/*
|
|
* MalRepRingOptions.cpp
|
|
*
|
|
*/
|
|
|
|
#include "MalRepRingOptions.h"
|
|
|
|
MalRepRingOptions MalRepRingOptions::singleton;
|
|
|
|
MalRepRingOptions::MalRepRingOptions()
|
|
{
|
|
shuffle = false;
|
|
}
|
|
|
|
MalRepRingOptions::MalRepRingOptions(ez::ezOptionParser& opt, int argc,
|
|
const char** argv) : MalRepRingOptions()
|
|
{
|
|
opt.add(
|
|
"", // Default.
|
|
0, // Required?
|
|
0, // Number of args expected.
|
|
0, // Delimiter if expecting multiple args.
|
|
"Shuffle sacrifice (default: disabled)", // Help description.
|
|
"-S", // Flag token.
|
|
"--shuffle" // Flag token.
|
|
);
|
|
opt.parse(argc, argv);
|
|
shuffle = opt.isSet("-S");
|
|
opt.resetArgs();
|
|
}
|