code: def nameValue(name, value, valueType=str, quotes=False):
      
      if valueType == bool:
          if value:
              return "--%s" % name
          return ""
      if value is None:
          return ""
      if quotes:
          return "--%s '%s'" % (name, valueType(value))
      return "--%s %s" % (name, valueType(value))
docs: Little function to make it easier to make name value strings for commands.