diff options
author | Alexandros Frantzis <alexandros.frantzis@linaro.org> | 2012-07-16 17:01:35 +0300 |
---|---|---|
committer | Alexandros Frantzis <alexandros.frantzis@linaro.org> | 2012-07-16 17:01:35 +0300 |
commit | 0e1b80069ce169f520535016d01731755045895b (patch) | |
tree | ce37527ac7f9c395c9f8fef2d9eac1cfa45ba17d | |
parent | 3a246d570058bd09b17c5494c3ea4bba700e8e52 (diff) | |
download | glmark2-0e1b80069ce169f520535016d01731755045895b.tar.gz |
Main: Display list of acceptable option values when listing scene information.
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 422e4cb..1346688 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -99,6 +99,22 @@ list_scenes() opt.name.c_str(), opt.description.c_str(), opt.default_value.c_str()); + + /* Display list of acceptable values (if defined) */ + if (opt.acceptable_values.size() > 0) { + Log::info(" Acceptable Values: "); + for (vector<string>::const_iterator val_iter = opt.acceptable_values.begin(); + val_iter != opt.acceptable_values.end(); + val_iter++) + { + std::string format_value(Log::continuation_prefix + "%s"); + if (val_iter + 1 != opt.acceptable_values.end()) + format_value += ","; + else + format_value += "\n"; + Log::info(format_value.c_str(), val_iter->c_str()); + } + } } } } |