Add public auto property support to cli - the core needs rewiring next. For #5.

This commit is contained in:
Starbeamrainbowlabs 2016-10-18 13:51:25 +02:00
parent a1a3640ab2
commit 28f9cd9975
2 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,8 @@ namespace cscz
public enum GenerationMode
{
PrivateVariablesWithProperties,
PublicVariables
PublicVariables,
PublicAutoProperties
}
public class ClassGenerator

View file

@ -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;