def METHOD_NAME(qapp):
    try:
        parser = main.createParser()
        parser.parse_args(["compare", "--foo"])
        self.fail()
    except SystemExit as e:
        result = e.args[0]
    assert result != 0