Skip to content

Commit

Permalink
Merge pull request #2636 from GreyXor/ilspycmd-nested-directories
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer authored Mar 7, 2022
2 parents 2055af9 + 7ae31fa commit cd8edaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ICSharpCode.Decompiler.Console/IlspyCmdProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -171,6 +174,7 @@ DecompilerSettings GetSettings(PEFile module)
RemoveDeadCode = RemoveDeadCode,
RemoveDeadStores = RemoveDeadStores,
UseSdkStyleProjectFormat = WholeProjectDecompiler.CanUseSdkStyleProjectFormat(module),
UseNestedDirectoriesForNamespaces = NestedDirectories,
};
}

Expand Down

0 comments on commit cd8edaf

Please sign in to comment.