def default_appname(self, config, args):
        if args['--app']:
            appname = args['--app']

            # appname is relative to current dir
            if appname == ".":
                if config.use_procfile:
                    appname = config.procfile.get_appname()
                else:
                    appname = os.path.split(os.getcwd())[1]

        elif config.procfile is not None:
            appname = config.procfile.get_appname()
        else:
            appname = "default"

        if not VALID_APPNAME.match(appname):
            raise ValueError(appname % "Invalid APP name: %r")

        return appname
dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/base.py/Command.default_appname/swapped operands of `%`