Remove --disable-gui feature as it still needs X to run, which makes it useless

This commit is contained in:
Hylke Bons 2011-06-26 01:12:55 +01:00
parent 2d5cb868a9
commit d194415430

View file

@ -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 ();
}