From d194415430d4f8085053c3e3a6badd2a86da2b30 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 26 Jun 2011 01:12:55 +0100 Subject: [PATCH] Remove --disable-gui feature as it still needs X to run, which makes it useless --- SparkleShare/SparkleShare.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/SparkleShare/SparkleShare.cs b/SparkleShare/SparkleShare.cs index fed350a6..bb7ce5a4 100644 --- a/SparkleShare/SparkleShare.cs +++ b/SparkleShare/SparkleShare.cs @@ -59,17 +59,14 @@ namespace SparkleShare { } // Parse the command line options - bool hide_ui = false; - bool show_help = false; - - var p = new OptionSet () { - { "d|disable-gui", _("Don't show the notification icon"), v => hide_ui = v != null }, + bool show_help = false; + OptionSet option_set = new OptionSet () { { "v|version", _("Print version information"), v => { PrintVersion (); } }, { "h|help", _("Show this help text"), v => show_help = v != null } }; try { - p.Parse (args); + option_set.Parse (args); } catch (OptionException e) { Console.Write ("SparkleShare: "); @@ -78,7 +75,7 @@ namespace SparkleShare { } if (show_help) - ShowHelp (p); + ShowHelp (option_set); // Load the right controller for the OS string controller_name = "Lin"; @@ -101,7 +98,7 @@ namespace SparkleShare { Controller.Initialize (); - if (Controller != null && !hide_ui) { + if (Controller != null) { UI = new SparkleUI (); UI.Run (); }