From 365ad25fab8a746f24cb5587bc990409a6118c61 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 9 Apr 2003 17:14:54 +0000 Subject: Add a "--setup-only" flag, to just run e_setup() and exit. (For #40889) * main.c (main): Add a "--setup-only" flag, to just run e_setup() and exit. (For #40889) svn path=/trunk/; revision=20788 --- shell/ChangeLog | 3 +++ shell/main.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/shell/ChangeLog b/shell/ChangeLog index 247e3fdce1..3e955ae50f 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -6,6 +6,9 @@ 2003-04-08 Dan Winship + * main.c (main): Add a "--setup-only" flag, to just run e_setup() + and exit. (For #40889) + * glade/evolution-startup-wizard.glade: Remove the color specs so the druid will use theme colors diff --git a/shell/main.c b/shell/main.c index db04513a5c..48be689dfa 100644 --- a/shell/main.c +++ b/shell/main.c @@ -86,6 +86,7 @@ static gboolean no_splash = FALSE; static gboolean start_online = FALSE; static gboolean start_offline = FALSE; static gboolean force_upgrade = FALSE; +static gboolean setup_only = FALSE; static gboolean killev = FALSE; extern char *evolution_debug_log; @@ -539,6 +540,8 @@ main (int argc, char **argv) { "force-upgrade", '\0', POPT_ARG_NONE, &force_upgrade, 0, N_("Force upgrading of configuration files from Evolution 1.0.x"), NULL }, #endif + { "setup-only", '\0', POPT_ARG_NONE | POPT_ARGFLAG_DOC_HIDDEN, + &setup_only, 0, NULL, NULL }, POPT_AUTOHELP { NULL, '\0', 0, NULL, 0, NULL, NULL } }; @@ -598,6 +601,8 @@ main (int argc, char **argv) if (! e_setup (evolution_directory)) exit (1); + if (setup_only) + exit (0); uri_list = NULL; -- cgit v1.2.3