ChecksumValidator.Program.Run C# (CSharp) Method

Run() private method

private Run ( string args ) : void
args string
return void
        private void Run(string[] args)
        {
            if (args.Length < 1)
                ShowUsageAndQuit();

            try
            {
                string romPath = args[0];

                if(!File.Exists(romPath))
                {
                    Console.WriteLine("{0} isn't a valid file path", romPath);
                }
                else
                {
                    ValidateChecksum(romPath);
                }
                
            }
            catch (Exception ex)
            {
                Console.WriteLine("It looks like something went wrong. Last message is,{0}{1}", Environment.NewLine, ex.Message);
            }

            Console.ReadKey(false);
        }