From eb52da9e74cee8ff6439b94c63ef29d3e2e4ea62 Mon Sep 17 00:00:00 2001 From: icedream Date: Mon, 12 Jan 2015 02:33:55 +0100 Subject: [PATCH] Fix process name display on usage output. The extension is not really needed if it crashes Mono after merging that much. --- src/updater/CommandLineOptions.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/updater/CommandLineOptions.cs b/src/updater/CommandLineOptions.cs index 6209e21..14fdfc0 100644 --- a/src/updater/CommandLineOptions.cs +++ b/src/updater/CommandLineOptions.cs @@ -55,9 +55,8 @@ namespace CitizenMP.Server.Installer "This is free software. You may redistribute copies of it under the terms of the MIT License ."); #endif help.AddPreOptionsLine(" "); - help.AddPreOptionsLine(string.Format("{0}{1} [options...] \"\"", - Process.GetCurrentProcess().ProcessName, - new FileInfo(Assembly.GetExecutingAssembly().Location).Extension)); + help.AddPreOptionsLine(string.Format("{0} [options...] \"\"", + Process.GetCurrentProcess().ProcessName)); help.AddOptions(this);