public static void Main(string[] args)
{
options = new Options();
CommandLine.Parser parser = new CommandLine.Parser(with => with.HelpWriter = Console.Error);
parser.ParseArgumentsStrict(args, options, () => Environment.Exit(-2));
if (options.AccessKey == null || options.SecretKey == null)
{
Console.WriteLine(options.GetUsage());
Environment.Exit(-2);
}
try
{
// ListVolumes(); // got for testing connectivity
CheckForScheduledSnapshots();
CheckForExpiredSnapshots();
}
catch (Exception err)
{
Console.WriteLine("Error from " + err.Source + ": " + err.Message);
Environment.Exit(-2);
}
Environment.Exit(0);
}