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
|
||||
{
|
||||
PrivateVariablesWithProperties,
|
||||
PublicVariables
|
||||
PublicVariables,
|
||||
PublicAutoProperties
|
||||
}
|
||||
|
||||
public class ClassGenerator
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue