|
static int | Main (string[] args) |
|
Definition at line 33 of file Program.cs.
static Configuration Ntp.Analyzer.Validate.Cli.Program.LoadConfig |
( |
string |
configFile | ) |
|
|
inlinestaticprivate |
Definition at line 113 of file Program.cs.
115 if (!
File.Exists(configFile))
117 Console.WriteLine($
"Cannot find configuration file {configFile}");
122 var config = reader.Execute();
126 foreach (
string error
in reader.Errors)
static int Ntp.Analyzer.Validate.Cli.Program.Main |
( |
string[] |
args | ) |
|
|
inlinestatic |
Definition at line 40 of file Program.cs.
References e.
42 Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
43 bool validate =
false;
50 {
"s|show", v => { show =
true; }},
51 {
"d|default", v => { dec.ShowDefaultValues =
true; }},
52 {
"v|validate", v => { validate =
true; }},
61 rem = param.Parse(args).ToArray();
76 Console.WriteLine(
"Wrong parameters.");
80 if (!show && !validate)
93 Console.WriteLine($
"Unexpected error while loading configuration file: {e.Message}");
102 dec.Configuration = config;
107 Console.WriteLine(
"Configuration is valid.");
static void SetDecompilerParam(Decompiler decompiler, char indent, string count)
static Configuration LoadConfig(string configFile)
const int ConfigErrorCode
const int ParameterErrorCode
static void Ntp.Analyzer.Validate.Cli.Program.SetDecompilerParam |
( |
Decompiler |
decompiler, |
|
|
char |
indent, |
|
|
string |
count |
|
) |
| |
|
inlinestaticprivate |
static void Ntp.Analyzer.Validate.Cli.Program.ShowUsage |
( |
| ) |
|
|
inlinestaticprivate |
Definition at line 141 of file Program.cs.
143 Console.WriteLine(
"NTP Analyzer validator tool v0.8.2");
144 Console.WriteLine(
"Usage: ntpav [-s|-v] [-d] [-t n|-w n] configuration");
145 Console.WriteLine(
" -s Show parsed configuration");
146 Console.WriteLine(
" -v Check if configuration is valid");
147 Console.WriteLine(
" -d Show all default value");
148 Console.WriteLine(
" -t Indent with n tabulators");
149 Console.WriteLine(
" -w Indent with n whitespaces");
const int Ntp.Analyzer.Validate.Cli.Program.ConfigErrorCode = 1 |
|
private |
const int Ntp.Analyzer.Validate.Cli.Program.ParameterErrorCode = 2 |
|
private |
const int Ntp.Analyzer.Validate.Cli.Program.SuccessCode = 0 |
|
private |
bool Ntp.Analyzer.Validate.Cli.Program.usage |
|
staticprivate |
The documentation for this class was generated from the following file: