def METHOD_NAME(qapp):
    # option -h must cause a raise SystemExit or a return 0
    try:
        parser = main.createParser()
        parser.parse_args(["compare", "--help"])
        result = 0
    except SystemExit as e:
        result = e.args[0]
    assert result == 0