mirror of
https://bitbucket.org/anguist/ntpa
synced 2026-09-30 22:28:28 +00:00
Parameter error checking
This commit is contained in:
@@ -41,12 +41,18 @@ namespace Ntp.Analyzer.Validate.Cli
|
||||
public static void Main (string[] args)
|
||||
{
|
||||
if (args.Length != 1) {
|
||||
Console.WriteLine("NTP Analyzer validator tool.");
|
||||
Console.WriteLine ("Usage: ntpav configuration");
|
||||
return;
|
||||
}
|
||||
|
||||
string configFile = args [0];
|
||||
|
||||
if (!File.Exists (configFile)) {
|
||||
Console.WriteLine("File does not exists: " + configFile);
|
||||
return;
|
||||
}
|
||||
|
||||
// Neutralize.
|
||||
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user