You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: XmlSchemaClassGenerator.Console/Program.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ static void Main(string[] args)
56
56
varnetCoreSpecificCode=false;
57
57
varnullableReferenceAttributes=false;
58
58
vargenerateCommandLineArgs=true;
59
+
varuseArrayItemAttribute=true;
59
60
60
61
varoptions=newOptionSet{
61
62
{"h|help","show this message and exit", v =>showHelp=v!=null},
@@ -129,6 +130,7 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
129
130
{"gc|generatedCodeAttribute","add version information to GeneratedCodeAttribute (default is true)", v =>createGeneratedCodeAttributeVersion=v!=null},
130
131
{"nc|netCore","generate .NET Core specific code that might not work with .NET Framework (default is false)", v =>netCoreSpecificCode=v!=null},
131
132
{"nr|nullableReferenceAttributes","generate attributes for nullable reference types (default is false)", v =>nullableReferenceAttributes=v!=null},
133
+
{"ar|useArrayItemAttribute","use ArrayItemAttribute for sequences with single elements (default is true)", v =>useArrayItemAttribute=v!=null},
132
134
{"ca|commandArgs","generate a comment with the exact command line arguments that were used to generate the source code (default is true)", v =>generateCommandLineArgs=v!=null},
133
135
};
134
136
@@ -207,6 +209,7 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
0 commit comments