logFileName = arg;
        continue;
      }
      let userValue = null;
      const eqPos = arg.indexOf('=');
      if (eqPos != -1) {
        userValue = arg.substr(eqPos + 1);
        arg = arg.substr(0, eqPos);
      }
      if (arg in this.argsDispatch_) {
        const dispatch = this.argsDispatch_[arg];
        const property = dispatch[0];
        const defaultValue = dispatch[1];
        if (typeof defaultValue == "function") {
          userValue = defaultValue(userValue);
        } else if (userValue == null) {
          userValue = defaultValue;
        }
        this.result_[property] = userValue;
      } else {
        return false;
      }
    }
    return true;
  }
}

export function parseBool(str) {
  if (str == "true" || str == "1") return true;
  return false;
}
