| 11 |
|
// Define a class to receive parsed values |
| 12 |
|
class ParametersParser |
| 13 |
|
{ |
| 14 |
< |
private static string globalFileName=""; |
| 15 |
< |
private static string globalElement=""; |
| 16 |
< |
private static string globalParentElement=""; |
| 14 |
> |
private static string globalFileName = ""; |
| 15 |
> |
private static string globalElement = ""; |
| 16 |
> |
private static string globalParentElement = ""; |
| 17 |
|
private static bool globalNoBackups = false; |
| 18 |
|
|
| 19 |
|
[Verb] |
| 148 |
|
Console.WriteLine("\nWritten by s10k"); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
+ |
[Verb] |
| 152 |
+ |
public static void showErrTypes() |
| 153 |
+ |
{ |
| 154 |
+ |
Array values = Enum.GetValues(typeof(Program.appErrors)); |
| 155 |
+ |
|
| 156 |
+ |
foreach (Program.appErrors val in values) |
| 157 |
+ |
{ |
| 158 |
+ |
Console.WriteLine(Enum.GetName(typeof(Program.appErrors),val) + " : " + (int)val); |
| 159 |
+ |
} |
| 160 |
+ |
} |
| 161 |
+ |
|
| 162 |
|
// Global Parameters |
| 163 |
|
[Global(Description = "Filename to apply the operations (with patchFile specifies the patch filename). Wildcards accepted for multiple files. No filename = search all .xml files in current path.")] |
| 164 |
|
public static void fileName( |