From 5207898f628284b1c69f6d5544512195e1188904 Mon Sep 17 00:00:00 2001 From: parzivail Date: Mon, 2 Aug 2021 14:38:04 -0400 Subject: [PATCH] actually register the dumptool commands --- DumpTool/DumpAllCommand.cs | 2 +- DumpTool/DumpAllMeshPropsCommand.cs | 2 +- DumpTool/Program.cs | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DumpTool/DumpAllCommand.cs b/DumpTool/DumpAllCommand.cs index 25eaf07..dd99ac0 100644 --- a/DumpTool/DumpAllCommand.cs +++ b/DumpTool/DumpAllCommand.cs @@ -4,7 +4,7 @@ namespace DumpTool { - [Verb("dump", HelpText = "Dumps all assets in the given forge file")] + [Verb("dumpall", HelpText = "Dumps all assets in the given forge file")] public class DumpAllCommand { [Value(0, HelpText = "The forge file to reference")] diff --git a/DumpTool/DumpAllMeshPropsCommand.cs b/DumpTool/DumpAllMeshPropsCommand.cs index 2db09aa..7c6ccb2 100644 --- a/DumpTool/DumpAllMeshPropsCommand.cs +++ b/DumpTool/DumpAllMeshPropsCommand.cs @@ -5,7 +5,7 @@ namespace DumpTool { - [Verb("dump", HelpText = "Dumps all MeshProperties containers in all flat archives in the given forge file")] + [Verb("dumpallmeshprops", HelpText = "Dumps all MeshProperties containers in all flat archives in the given forge file")] public class DumpAllMeshPropsCommand { [Value(0, HelpText = "The search index to use (see command: index)")] diff --git a/DumpTool/Program.cs b/DumpTool/Program.cs index 15fa12e..d2533a5 100644 --- a/DumpTool/Program.cs +++ b/DumpTool/Program.cs @@ -32,12 +32,15 @@ public static Forge GetForge(string filename) private static void Main(string[] args) { - Parser.Default.ParseArguments(args) + Parser.Default.ParseArguments(args) .WithParsed(ListCommand.Run) .WithParsed(FindCommand.Run) .WithParsed(InspectCommand.Run) .WithParsed(DumpCommand.Run) + .WithParsed(DumpAllCommand.Run) .WithParsed(DumpMeshPropsCommand.Run) + .WithParsed(DumpAllMeshPropsCommand.Run) .WithParsed(IndexCommand.Run); } }