private void WriteBanner()

in src/CLI/OutputGenerator.cs [62:98]


        private void WriteBanner(IOptions options, VerbosityLevel minimumVerbosity)
        {
            if (options == null) throw new ArgumentNullException(nameof(options));

            if (!_bannerHasBeenShown && options.VerbosityLevel >= minimumVerbosity)
            {
                WriteAppBanner();

                bool haveProcessName = options.ProcessName != null;
                bool haveProcessId = options.ProcessId > 0;

                if (haveProcessName || haveProcessId)
                {
                    _writer.Write(DisplayStrings.ScanTargetIntro);

                    if (haveProcessName)
                    {
                        _writer.Write(DisplayStrings.ScanTargetProcessNameFormat, options.ProcessName);
                    }
                    if (haveProcessName && haveProcessId)
                    {
                        _writer.Write(DisplayStrings.ScanTargetSeparator);
                    }
                    if (haveProcessId)
                    {
                        _writer.Write(DisplayStrings.ScanTargetProcessIdFormat, options.ProcessId);
                    }
                    _writer.WriteLine();
                }
                if (!string.IsNullOrEmpty(options.ScanId))
                {
                    _writer.WriteLine(DisplayStrings.ScanIdFormat, options.ScanId);
                }

                _bannerHasBeenShown = true;
            }
        }