summaryrefslogtreecommitdiffstats
path: root/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-14 14:45:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-14 14:45:42 -0700
commit8bd535d092430b6df721a91404849755dff042ba (patch)
treed7357b17d0c87a305e0951efd0f34a502318ccd1 /subsurfacestartup.c
parent181d4e2fa66a0ce31c600821e55c9b7f0e597b8b (diff)
downloadsubsurface-8bd535d092430b6df721a91404849755dff042ba.tar.gz
User survey: force running the survey from command line
This way people can test the dialog much easier. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r--subsurfacestartup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c
index 4ae426d1c..8566d194c 100644
--- a/subsurfacestartup.c
+++ b/subsurfacestartup.c
@@ -35,6 +35,8 @@ struct preferences default_prefs = {
.show_average_depth = true
};
+int run_survey;
+
struct units *get_units()
{
return &prefs.units;
@@ -97,6 +99,7 @@ static void print_help()
printf("\n --import logfile ... Logs before this option is treated as base, everything after is imported");
printf("\n --verbose|-v Verbose debug (repeat to increase verbosity)");
printf("\n --version Prints current version");
+ printf("\n --survey Offer to submit a user survey");
printf("\n --win32console Create a dedicated console if needed (Windows only). Add option before everything else\n\n");
}
@@ -133,6 +136,10 @@ void parse_argument(const char *arg)
print_version();
exit(0);
}
+ if (strcmp(arg, "--survey") == 0) {
+ run_survey = true;
+ return;
+ }
if (strcmp(arg, "--win32console") == 0)
return;
/* fallthrough */