def main():
    'Read the Advent of Code problem and solve it'
    args = parse_command_line()
    input_text = from_file(args.filepath)
    if (args.part == 1):
        result = part_one(args, input_text)
    else:
        result = part_two(args, input_text)
    if result:
        sys.exit(0)
    sys.exit(2)
Read the Advent of Code problem and solve it
def main():
    
    args = parse_command_line()
    input_text = from_file(args.filepath)
    if (args.part == 1):
        result = part_one(args, input_text)
    else:
        result = part_two(args, input_text)
    if result:
        sys.exit(0)
    sys.exit(2)