Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
actually register the dumptool commands
Browse files Browse the repository at this point in the history
  • Loading branch information
parzivail committed Aug 2, 2021
1 parent fb281d9 commit 5207898
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DumpTool/DumpAllCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion DumpTool/DumpAllMeshPropsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)")]
Expand Down
5 changes: 4 additions & 1 deletion DumpTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ public static Forge GetForge(string filename)

private static void Main(string[] args)
{
Parser.Default.ParseArguments<ListCommand, FindCommand, InspectCommand, DumpCommand, DumpMeshPropsCommand, IndexCommand>(args)
Parser.Default.ParseArguments<ListCommand, FindCommand, InspectCommand, DumpCommand, DumpMeshPropsCommand, IndexCommand,
DumpAllCommand, DumpAllMeshPropsCommand>(args)
.WithParsed<ListCommand>(ListCommand.Run)
.WithParsed<FindCommand>(FindCommand.Run)
.WithParsed<InspectCommand>(InspectCommand.Run)
.WithParsed<DumpCommand>(DumpCommand.Run)
.WithParsed<DumpAllCommand>(DumpAllCommand.Run)
.WithParsed<DumpMeshPropsCommand>(DumpMeshPropsCommand.Run)
.WithParsed<DumpAllMeshPropsCommand>(DumpAllMeshPropsCommand.Run)
.WithParsed<IndexCommand>(IndexCommand.Run);
}
}
Expand Down

0 comments on commit 5207898

Please sign in to comment.