private bool ConfirmRuntimeArguments()

in src/Program.cs [391:419]


        private bool ConfirmRuntimeArguments()
        {
            // If Console redirection is on, we're in unattended mode
            if (m_args.InteractiveMode == false || Console.IsInputRedirected)
            {
                return true;
            }

            // Print the arguments to make sure this is what the caller intends to do
            Console.WriteLine();
            ExtendedConsole.WriteLine(ConsoleColor.Cyan, "Please review the run parameters:");
            Console.WriteLine();
            ExtendedConsole.WriteLine(ConsoleColor.Gray, m_args.FormattedParametersSummary());
            Console.WriteLine();
            ExtendedConsole.Write(ConsoleColor.Cyan, "Press [Ctrl+Q] to abort, press any other key or wait for 10 seconds to proceed ");

            var key = Utilities.ReadKeyWithTimeout(TimeSpan.FromSeconds(10.0));
            Console.WriteLine();

            if (key.HasValue)
            {
                if (key.Value.Modifiers.HasFlag(ConsoleModifiers.Control) && key.Value.Key == ConsoleKey.Q)
                {
                    return false;
                }
            }

            return true;
        }