kopia lustrzana https://gitlab.com/tomaszg/geostat
Cleanup of unused stuff from geostat_cli and extra -C option
rodzic
ea14939ac3
commit
6bb23f4231
|
@ -28,6 +28,7 @@ void show_usage() {
|
|||
std::cout << "\t-N\t\tcompute stats only for unfound caches (works only with SQLite)\n";
|
||||
std::cout << "\t-M\t\tprint geographically extreme caches\n";
|
||||
std::cout << "\t-D\t\tprint furthest and closest caches\n";
|
||||
std::cout << "\t-C\t\tprint calendar related stats\n";
|
||||
std::cout << "\t-H file\t\trender a heat map to a file\n";
|
||||
std::cout << "\t-s n\t\tstamp size for a heat map (default = 15)\n";
|
||||
std::cout << "\t-e\t\tuse exponential to flatten the heat map\n";
|
||||
|
@ -65,13 +66,6 @@ int main(int argc, char** argv) {
|
|||
std::string ocro_user;
|
||||
std::string ocuk_user;
|
||||
|
||||
std::string ocpl_user_profile;
|
||||
std::string ocde_user_profile;
|
||||
std::string ocus_user_profile;
|
||||
std::string ocnl_user_profile;
|
||||
std::string ocro_user_profile;
|
||||
std::string ocuk_user_profile;
|
||||
|
||||
std::string ocpl_url = "https://opencaching.pl/okapi/";
|
||||
std::string ocde_url = "https://www.opencaching.de/okapi/";
|
||||
std::string ocus_url = "http://www.opencaching.us/okapi/";
|
||||
|
@ -88,7 +82,7 @@ int main(int argc, char** argv) {
|
|||
if (argc == 1) show_usage();
|
||||
|
||||
int o;
|
||||
while ((o = getopt(argc, argv, "qNg:o::p:d:u:n:r:k:MDOH:s:m:etLTYh?")) != -1)
|
||||
while ((o = getopt(argc, argv, "qNg:o::p:d:u:n:r:k:MDCOH:s:m:etLTYh?")) != -1)
|
||||
switch (o) {
|
||||
// case 'd':
|
||||
// try {
|
||||
|
@ -146,6 +140,9 @@ int main(int argc, char** argv) {
|
|||
case 'D':
|
||||
show_dist = 1;
|
||||
break;
|
||||
case 'C':
|
||||
show_calendar = 1;
|
||||
break;
|
||||
case 'O':
|
||||
show_owners = 1;
|
||||
break;
|
||||
|
@ -194,7 +191,6 @@ int main(int argc, char** argv) {
|
|||
Okapi OCpl(ocpl_url, ocpl_key);
|
||||
if (!ocpl_user.empty()) ocpl_user_uuid = OCpl.get_uuid(ocpl_user);
|
||||
cc.merge(OCpl.get_user_caches(ocpl_user_uuid, 0));
|
||||
ocpl_user_profile = OCpl.get_profile_url(ocpl_user_uuid);
|
||||
}
|
||||
if (!ocde_user_uuid.empty() || !ocde_user.empty()) {
|
||||
Okapi OCde(ocde_url, ocde_key);
|
||||
|
|
Ładowanie…
Reference in New Issue