diff --git a/doc/tools/dc.md b/doc/tools/dc.md index 949639f..a3cd448 100644 --- a/doc/tools/dc.md +++ b/doc/tools/dc.md @@ -92,6 +92,7 @@ specifies the path of the directory to write inferred schemas to. | - | - | | `--decryption-key ` | Specifies a decryption key (defaults to the latest known key). | | `--decryption-iv ` | Specifies a decryption IV (defaults to the latest known IV). | +| `--architecture ` | Specifies the data center format architecture (defaults to `X64`). | | `--strict` | Enables strict format compliance checks while reading the input file. | | `--strategy ` | Specifies a schema inference strategy (defaults to `Conservative`). | | `--subdirectories` | Enables using output subdirectories based on data sheet names. | diff --git a/src/tools/dc/Commands/SchemaCommand.cs b/src/tools/dc/Commands/SchemaCommand.cs index ea06212..3257291 100644 --- a/src/tools/dc/Commands/SchemaCommand.cs +++ b/src/tools/dc/Commands/SchemaCommand.cs @@ -25,6 +25,10 @@ public sealed class SchemaCommandSettings : CommandSettings [TypeConverter(typeof(HexStringConverter))] public ReadOnlyMemory DecryptionIV { get; init; } = DataCenter.LatestIV; + [CommandOption("--architecture ")] + [Description("Set format architecture")] + public DataCenterArchitecture Architecture { get; init; } = DataCenterArchitecture.X64; + [CommandOption("--strict")] [Description("Enable strict verification")] public bool Strict { get; init; } @@ -80,6 +84,7 @@ This means that schemas generated from this command may reject modifications to new DataCenterLoadOptions() .WithKey(settings.DecryptionKey.Span) .WithIV(settings.DecryptionIV.Span) + .WithArchitecture(settings.Architecture) .WithStrict(settings.Strict) .WithLoaderMode(DataCenterLoaderMode.Eager) .WithMutability(DataCenterMutability.Immutable),