def AppendArg(args, name, arg, format_pattern='-{0}={1}'):
    if arg:
        args.append(format_pattern.format(name, arg))
def AppendArg(args, name, arg, format_pattern='-{0}={1}'):
    if arg:
        args.append(format_pattern.format(name, arg))