Commit 4a346401 authored by plgruener's avatar plgruener

reword cli parameters

parent dedc8727
...@@ -34,29 +34,31 @@ int main(int argc, char* argv[]) { ...@@ -34,29 +34,31 @@ int main(int argc, char* argv[]) {
namespace po = boost::program_options; namespace po = boost::program_options;
try { try {
po::options_description desc("Options"); po::options_description desc("Options");
desc.add_options()("help", "Help message")( desc.add_options()
"iterations,n", po::value<int>(&num_iterations)->default_value(100), ("help", "Help message")
" Number of iterations")( ("iterations,n", po::value<int>(&num_iterations)->default_value(100),
"threshold,s", po::value<float>(&threshold)->default_value(1), " Number of iterations")
" Threshold above that computation is stopped")( ("width,w", po::value<int>(&alpha_num_intervals)->default_value(100),
"amin,a", po::value<float>(&alphamin)->default_value(0), " width of image (alpha resolution)")
" α lower bound")("amax,A", ("height,h", po::value<int>(&beta_num_intervals)->default_value(100),
po::value<float>(&alphamax)->default_value(1), " height of image (beta resolution)")
" α upper bound")( ("threshold,s", po::value<float>(&threshold)->default_value(1),
"alphas,w", po::value<int>(&alpha_num_intervals)->default_value(100), " Threshold above that computation is stopped")
" α resolution/width of image")( ("amin,a", po::value<float>(&alphamin)->default_value(0),
"betas,h", po::value<int>(&beta_num_intervals)->default_value(100), " alpha lower bound")
" β resolution/height of image")( ("amax,A", po::value<float>(&alphamax)->default_value(1),
"bmin,b", po::value<float>(&betamin)->default_value(0), " alpha upper bound")
" β lower bound")("bmax,B", ("bmin,b", po::value<float>(&betamin)->default_value(0),
po::value<float>(&betamax)->default_value(1), " beta lower bound")
" β upper bound")( ("bmax,B", po::value<float>(&betamax)->default_value(1),
"num_seedpoints,N", po::value<int>(&num_seedpoints)->default_value(8), " beta upper bound")
" Number of seedpoints (uniformly distributed in (0,1) )")( ("num_seedpoints,N", po::value<int>(&num_seedpoints)->default_value(8),
"seedpoints,S", po::value<std::vector<float>>(&seedpoints)->multitoken(), " Number of seedpoints (uniformly distributed in (0,1) )")
" Values for explicit seedpoints")( ("seedpoints,S", po::value<std::vector<float>>(&seedpoints)->multitoken(),
"output,O", po::value<bool>(&output)->default_value(true), " Values for explicit seedpoints")
" Boolean flag for output"); ("output,O", po::value<bool>(&output)->default_value(true),
" Boolean flag for output")
;
po::variables_map vm; po::variables_map vm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment