Skip to content

Commit

Permalink
The -o option is now hidden in non-Windows help text. fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Mar 13, 2024
1 parent 37d4e74 commit 423a55f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Explorer/Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ public static void Log(Exception ex)

public static void LogHelp()
{
Log("\n" + HelpText);
}

static readonly string HelpText = @"Godot can embed '.pck' files into other files.
string helpText = @"Godot can embed '.pck' files into other files.
Therefore, GodotPCKExplorer can open both '.pck' and files with embedded 'pck'.
Encryption is only verified with PCK for Godot 4.
Expand All @@ -62,12 +59,19 @@ public static void LogHelp()
{} - Optional arguments
Examples of valid commands:
-o Open pack file
";

if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
helpText += @"-o Open pack file using UI
-o [path to pack] {[encryption key]}
-o C:/Game.exe
-o C:/Game.pck
-i Show pack file info
";
}

helpText += @"-i Show pack file info
-i [path to pack]
-i C:/Game.exe
-i C:/Game.pck
Expand Down Expand Up @@ -117,5 +121,8 @@ public static void LogHelp()
-c C:/Game.pck 1.3.4.1
-c C:/Game.exe 2.4.0.2
";

Log("\n" + helpText);
}
}
}

0 comments on commit 423a55f

Please sign in to comment.