From: Alexander Schmidt Date: Wed, 20 Jul 2016 22:43:47 +0000 (+0200) Subject: Modified command line options X-Git-Url: http://git.treefish.org/~alex/seamulator.git/commitdiff_plain/6280f60567d99bd059818523fcdb0a710173b3d9 Modified command line options --- diff --git a/src/seamulator.cpp b/src/seamulator.cpp index 5c58ee0..ffbf586 100644 --- a/src/seamulator.cpp +++ b/src/seamulator.cpp @@ -72,11 +72,11 @@ Settings parseArguments(int argc, char** argv) { po::options_description desc("Available options"); desc.add_options() - ("help,h", "produce help message") + ("help,h", "show this help") ("windspeed,w", po::value()->default_value(10), - "wind speed given in m/s") - ("size,s", po::value()->default_value("small"), - "lattice size (small/large)") + "wind speed (m/s)") + ("size,s", po::value()->default_value('s'), + "lattice size (s|l)") ("amplitude,a", po::value()->default_value(1), "amplitude multiplicator") ; @@ -94,7 +94,7 @@ Settings parseArguments(int argc, char** argv) settings.windSpeed = vm["windspeed"].as(); - if (vm["size"].as() == "large") { + if (vm["size"].as() == 'l') { settings.latticeSize = 256; settings.latticeExtend = 20; settings.amplitudeFactor = vm["amplitude"].as() * 0.00000004;