Define a default value for -m

sql-rework
Tomasz Golinski 2019-09-09 22:37:28 +02:00
rodzic 80a805b4e7
commit 8d22d2a85c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -91,7 +91,7 @@ int main(int argc, char** argv) {
std::cout << "\t-D\tprint furthest and closest caches\n";
std::cout << "\t-H file\trender a heat map to a file\n";
std::cout << "\t-s n\tstamp size for a heat map (default = 15)\n";
std::cout << "\t-m map\tchosen map (Poland, Poland_relief, Europe)\n";
std::cout << "\t-m map\tchosen map: Poland, Poland_relief, Europe (default = Poland)\n";
std::cout << "\t-L\tprint all caches\n";
std::cout << "\t-T\tprint D/T matrix\n";
std::cout << "\t-h\tdisplay this help screen\n";
@ -121,7 +121,7 @@ int main(int argc, char** argv) {
const Map* chosen_map;
if (heat_map == "Poland_relief")
chosen_map = &Poland_relief;
else if (heat_map == "Poland")
else if (heat_map == "Poland" || heat_map.empty())
chosen_map = &Poland;
else if (heat_map == "Europe")
chosen_map = &Europe;