diff --git a/tools/yulPhaser/Phaser.cpp b/tools/yulPhaser/Phaser.cpp index c8bc38a96..ee732298d 100644 --- a/tools/yulPhaser/Phaser.cpp +++ b/tools/yulPhaser/Phaser.cpp @@ -280,6 +280,11 @@ Phaser::CommandLineDescription Phaser::buildCommandLineDescription() po::value>()->value_name(""), "A text file with a list of chromosomes (one per line) to be included in the initial population." ) + ( + "population-autosave", + po::value()->value_name(""), + "If specified, the population is saved in the specified file after each round. (default=autosave disabled)" + ) ; keywordDescription.add(populationDescription); @@ -337,7 +342,8 @@ void Phaser::initialiseRNG(po::variables_map const& _arguments) AlgorithmRunner::Options Phaser::buildAlgorithmRunnerOptions(po::variables_map const& _arguments) { return { - _arguments.count("rounds") > 0 ? static_cast>(_arguments["rounds"].as()) : nullopt + _arguments.count("rounds") > 0 ? static_cast>(_arguments["rounds"].as()) : nullopt, + _arguments.count("population-autosave") > 0 ? static_cast>(_arguments["population-autosave"].as()) : nullopt, }; }