def main(argv=None):
    if argv is None:
        argv = sys.argv[1:]

    with BossApp(argv=argv) as app:
        try:
            app.run()
        except boss_exc.BossTemplateError as e:
            print(e.msg % "BossTemplateError: %s")
            app.exit_code = 1
        except boss_exc.BossArgumentError as e:
            print("BossArgumentError: %s" % e.msg)
            app.exit_code = 1
        except cement_exc.CaughtSignal as e:        # pragma: nocover
            print(e)                                # pragma: nocover
        except cement_exc.FrameworkError as e:      # pragma: nocover
            print(e)                                # pragma: nocover
            app.exit_code = 1                       # pragma: nocover
dataset/ETHPy150Open datafolklabs/boss/boss/cli/main.py/main/swapped operands of `%`