summaryrefslogtreecommitdiffstats
path: root/core/subsurfacestartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/subsurfacestartup.c')
-rw-r--r--core/subsurfacestartup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index 0b8385616..25fd03352 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -10,6 +10,8 @@
#include "git-access.h"
#include "libdivecomputer/version.h"
+extern void show_computer_list();
+
struct preferences prefs, git_prefs;
struct preferences default_prefs = {
.cloud_base_url = "https://cloud.subsurface-divelog.org/",
@@ -152,6 +154,7 @@ void print_files()
const char *filename, *local_git;
printf("\nFile locations:\n\n");
+ printf("Cloud email:%s\n", prefs.cloud_storage_email);
if (!empty_string(prefs.cloud_storage_email) && !empty_string(prefs.cloud_storage_password)) {
filename = cloud_url();
@@ -265,6 +268,10 @@ void parse_argument(const char *arg)
prefs.dive_computer.device = strdup(arg + sizeof("--device=") - 1);
return;
}
+ if (strncmp(arg, "--list-dc", sizeof("--list-dc") - 1) == 0) {
+ show_computer_list();
+ return;
+ }
#elif SUBSURFACE_MOBILE_DESKTOP
if (strncmp(arg, "--testqml=", sizeof("--testqml=") - 1) == 0) {
testqml = malloc(strlen(arg) - sizeof("--testqml=") + 1);