/* Parses the command line to extract the program settings.  */
static void ExtractProgramSettingsFromCommandLine(int argc, char const *const argv[], tProgramSettings *programSettings)
/* Parses the command line to extract the program settings.  */
static void ExtractProgramSettingsFromCommandLine(int argc, char const *const argv[], tProgramSettings *programSettings)
{
  uint8_t paramIdx;
  assert(argv != NULL);
  assert(programSettings != NULL);
  if ( (argv != NULL) && (programSettings != NULL) )
  {
    programSettings->silentMode = false;
    for (paramIdx = 1; paramIdx < argc; paramIdx++)
    {
      if ( (strstr(argv[paramIdx], "-sm") != NULL) &&
           (strlen(argv[paramIdx]) == 3) )
      {
        programSettings->silentMode = true;
        continue;
      }
    }
  }
}