From 7ae31fa7f37e5f21058f5b5f3579e3574b678927 Mon Sep 17 00:00:00 2001 From: GreyXor <79602273+GreyXor@users.noreply.github.com> Date: Thu, 3 Mar 2022 17:01:35 +0100 Subject: [PATCH] ilspycmd nested directories decompiler setting New flag in ilspycmd that allows to use the decompiler setting UseNestedDirectoriesForNamespaces --- ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs b/ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs index 12e13d8f9e..3459e8554b 100644 --- a/ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs +++ b/ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs @@ -89,6 +89,9 @@ class ILSpyCmdProgram [Option("-d|--dump-package", "Dump package assembiles into a folder. This requires the output directory option.", CommandOptionType.NoValue)] public bool DumpPackageFlag { get; } + [Option("--nested-directories", "Use nested directories for namespaces.", CommandOptionType.NoValue)] + public bool NestedDirectories { get; } + private int OnExecute(CommandLineApplication app) { TextWriter output = System.Console.Out; @@ -171,6 +174,7 @@ DecompilerSettings GetSettings(PEFile module) RemoveDeadCode = RemoveDeadCode, RemoveDeadStores = RemoveDeadStores, UseSdkStyleProjectFormat = WholeProjectDecompiler.CanUseSdkStyleProjectFormat(module), + UseNestedDirectoriesForNamespaces = NestedDirectories, }; }