static int Main (string[] args)
{
try {
if (args.Length < 1) {
Header ();
Help (null);
} else {
return Process (args);
}
}
catch (IndexOutOfRangeException) {
Console.WriteLine ("ERROR: Invalid number of parameters.{0}", Environment.NewLine);
Help (null);
}
catch (CryptographicException ce) {
Console.WriteLine ("ERROR: {0}", ce.Message);
}
catch (Exception e) {
Console.WriteLine ("ERROR: Unknown error during processing: {0}", e);
}
return 1;
}
}