Browse Source

Fixed wrong application name when showing help (see #745)

pull/757/head
Marco Zille 9 years ago
parent
commit
6faa591884
  1. 3
      src/CLI/CLI.cs

3
src/CLI/CLI.cs

@ -61,8 +61,7 @@ namespace CppSharp @@ -61,8 +61,7 @@ namespace CppSharp
static void ShowHelp()
{
String appName = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
appName = Path.GetFileName(appName);
string appName = Platform.IsWindows ? "CppSharp.CLI.exe" : "CppSharp.CLI";
Console.WriteLine();
Console.WriteLine("Usage: {0} [OPTIONS]+ [FILES]+", appName);

Loading…
Cancel
Save