/* Parses the command line to extract the firmware file. This is the only parameter that is specified without a '-' character at the start.  */
static char const  *const ExtractFirmwareFileFromCommandLine(int argc, char const *const argv[])
/* Parses the command line to extract the firmware file. This is the only parameter that is specified without a '-' character at the start.  */
static char const  *const ExtractFirmwareFileFromCommandLine(int argc, char const *const argv[])
{
  char const * result = NULL;
  uint8_t paramIdx;
  assert(argv != NULL);
  if (argv != NULL)
  {
    for (paramIdx = 1; paramIdx < argc; paramIdx++)
    {
      if ( (argv[paramIdx][0] != '-') && (strlen(argv[paramIdx]) > 2) )
      {
        result = argv[paramIdx];
      }
    }    
  }
  return result;
}