From 3ea3ba2beeab837e8d7c533746bd621daf1c09bd Mon Sep 17 00:00:00 2001 From: CNugteren Date: Sat, 20 Jun 2015 13:33:50 +0200 Subject: Distinguish between a short smoke test and a full test --- src/utilities.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/utilities.cc') diff --git a/src/utilities.cc b/src/utilities.cc index 3fc33502..98570088 100644 --- a/src/utilities.cc +++ b/src/utilities.cc @@ -159,16 +159,21 @@ Precision GetPrecision(const int argc, char *argv[]) { bool CheckArgument(const int argc, char *argv[], std::string &help, const std::string &option) { - // Updates the help message - help += " -"+option+"\n"; - // Parses the argument. Note that this supports both the given option (e.g. -device) and one with // an extra dash in front (e.g. --device). + auto return_value = false; for (int c=0; c