diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -9,6 +9,8 @@ #include "dive.h" #include "divelist.h" +#include "libdivecomputer.h" +#include "version.h" struct preferences prefs; struct preferences default_prefs = { @@ -25,11 +27,14 @@ struct preferences default_prefs = { .mod = FALSE, .mod_ppO2 = 1.6, .ead = FALSE, + .profile_dc_ceiling = TRUE, .profile_red_ceiling = FALSE, .profile_calc_ceiling = FALSE, .calc_ceiling_3m_incr = FALSE, - .gflow = 0.30, - .gfhigh = 0.75, + .gflow = 30, + .gfhigh = 75, + .font_size = 14.0, + .show_invalid = FALSE, #ifdef USE_GTK_UI .map_provider = OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID, #endif @@ -95,6 +100,11 @@ static void parse_argument(const char *arg) imported = TRUE; return; } + if (strcmp(arg, "--version") == 0) { + printf("Subsurface v%s, ", VERSION_STRING); + printf("built with libdivecomputer v%s\n", dc_version(NULL)); + exit(0); + } /* fallthrough */ case 'p': /* ignore process serial number argument when run as native macosx app */ |