Add public auto property support to cli - the core needs rewiring next. For #5.
This commit is contained in:
parent
a1a3640ab2
commit
28f9cd9975
2 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,8 @@ namespace cscz
|
||||||
public enum GenerationMode
|
public enum GenerationMode
|
||||||
{
|
{
|
||||||
PrivateVariablesWithProperties,
|
PrivateVariablesWithProperties,
|
||||||
PublicVariables
|
PublicVariables,
|
||||||
|
PublicAutoProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ClassGenerator
|
public class ClassGenerator
|
||||||
|
|
|
@ -37,6 +37,9 @@ namespace cscz
|
||||||
case "public":
|
case "public":
|
||||||
generationMode = GenerationMode.PublicVariables;
|
generationMode = GenerationMode.PublicVariables;
|
||||||
break;
|
break;
|
||||||
|
case "public-auto":
|
||||||
|
generationMove = GenerationMode.PublicAutoProperties;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
Console.Error.WriteLine("Error: Unknown argument '{0}'.", args[i]);
|
Console.Error.WriteLine("Error: Unknown argument '{0}'.", args[i]);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue