From ffc21632b6a519b761069dc0c800605345321cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 21 Feb 2020 19:03:10 +0100 Subject: [PATCH] [yul-phaser] Phaser: Split command-line option description into groups --- tools/yulPhaser/Phaser.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/yulPhaser/Phaser.cpp b/tools/yulPhaser/Phaser.cpp index ac96a1ee8..c06533c21 100644 --- a/tools/yulPhaser/Phaser.cpp +++ b/tools/yulPhaser/Phaser.cpp @@ -176,16 +176,25 @@ Phaser::CommandLineDescription Phaser::buildCommandLineDescription() lineLength, minDescriptionLength ); - keywordDescription.add_options() + + po::options_description generalDescription("GENERAL", lineLength, minDescriptionLength); + generalDescription.add_options() ("help", "Show help message and exit.") ("input-file", po::value()->required(), "Input file") ("seed", po::value(), "Seed for the random number generator") + ; + keywordDescription.add(generalDescription); + + po::options_description algorithmDescription("ALGORITHM", lineLength, minDescriptionLength); + algorithmDescription.add_options() ( "algorithm", po::value()->default_value(Algorithm::GEWEP), "Algorithm" ) ; + keywordDescription.add(algorithmDescription); + po::positional_options_description positionalDescription; positionalDescription.add("input-file", 1);