def AppendOptionalArgs(self, option_dict):
    for (option, value) in option_dict.items():
        if value:
            if (value is True):
                self.AppendArg(option)
            else:
                self.AppendArg(('%s=%s' % (option, value)))
def AppendOptionalArgs(self, option_dict):
    for (option, value) in option_dict.items():
        if value:
            if (value is True):
                self.AppendArg(option)
            else:
                self.AppendArg(('%s=%s' % (option, value)))