diff --git a/cscz/ClassGenerator.cs b/cscz/ClassGenerator.cs index de0dcd9..3e63f0d 100644 --- a/cscz/ClassGenerator.cs +++ b/cscz/ClassGenerator.cs @@ -11,7 +11,8 @@ namespace cscz public enum GenerationMode { PrivateVariablesWithProperties, - PublicVariables + PublicVariables, + PublicAutoProperties } public class ClassGenerator @@ -213,4 +214,4 @@ namespace cscz return str.ToLower(); } } -} \ No newline at end of file +} diff --git a/cscz/Program.cs b/cscz/Program.cs index 9883c3b..a769b02 100644 --- a/cscz/Program.cs +++ b/cscz/Program.cs @@ -37,6 +37,9 @@ namespace cscz case "public": generationMode = GenerationMode.PublicVariables; break; + case "public-auto": + generationMove = GenerationMode.PublicAutoProperties; + break; default: Console.Error.WriteLine("Error: Unknown argument '{0}'.", args[i]); return 1;