From 6280f60567d99bd059818523fcdb0a710173b3d9 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 21 Jul 2016 00:43:47 +0200 Subject: [PATCH] Modified command line options --- src/seamulator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.2