From 8592eb4cac778230d51af24fd18c8a63ab54fbff Mon Sep 17 00:00:00 2001 From: Rain Sallow Date: Wed, 3 May 2023 12:00:02 -0400 Subject: [PATCH] (#2867) Fix wording/spelling of the added comment Just tweaking the added comment here to make a little more sense and fix a typo. --- .../infrastructure.app/builders/ConfigurationBuilder.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs index 67cc2b401f..b0c88aa11c 100644 --- a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs +++ b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs @@ -448,9 +448,10 @@ private static void SetGlobalOptions(IList args, ChocolateyConfiguration { if (!string.IsNullOrWhiteSpace(config.CommandName)) { - // The setOptions lambda above is called twice, once to set the command name, and then to execute the command with all options. - // To ensure correct option of the help options, we need to reset them to false in the first execution, to then have them parsed correctly in the second - // iteration. + // This method is called twice each run, once when setting the command name and global options (here), and then to set all the + // command-specific options and actually execute the command. + // To ensure correct operation, we need to reset the help options to false in the first execution, to then have them + // parsed correctly in the second iteration. config.HelpRequested = false; config.ShowOnlineHelp = false; config.UnsuccessfulParsing = false;