@click.command(context_settings=CLICK_CONTEXT_SETTINGS)<EOL>@click.argument('<STR_LIT>', required=False)<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>default=None,<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>', '<STR_LIT>'],<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>default=os.getcwd(),<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>multiple=True,<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>multiple=True,<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>default='<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>type=click.Choice(['<STR_LIT>', '<STR_LIT>']),<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>', '<STR_LIT>'],<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT:-c>',<EOL>'<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>type=click.STRING,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>multiple=True,<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help="<STR_LIT>"<EOL>"<STR_LIT>")<EOL>@click.option('<STR_LIT>',<EOL>multiple=True,<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>'],<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>', '<STR_LIT>'],<EOL>default=True,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>cls=_MutuallyExclusiveOption,<EOL>mutually_exclusive=['<STR_LIT>', '<STR_LIT>'],<EOL>default=False,<EOL>is_flag=True,<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>default=False,<EOL>is_flag=True,<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@click.option('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>default=False,<EOL>is_flag=True,<EOL>help='<STR_LIT>')<EOL>def main(verbose, **kwargs):
config = kwargs['<STR_LIT>']<EOL>if not config and not kwargs['<STR_LIT>']:<EOL><INDENT>click.echo('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if verbose:<EOL><INDENT>set_verbose()<EOL><DEDENT>if config:<EOL><INDENT>repex_vars = _build_vars_dict(kwargs['<STR_LIT>'], kwargs['<STR_LIT>'])<EOL>try:<EOL><INDENT>iterate(<EOL>config_file_path=config,<EOL>variables=repex_vars,<EOL>tags=list(kwargs['<STR_LIT>']),<EOL>validate=kwargs['<STR_LIT>'],<EOL>validate_only=kwargs['<STR_LIT>'],<EOL>with_diff=kwargs['<STR_LIT>'])<EOL><DEDENT>except (RepexError, IOError, OSError) as ex:<EOL><INDENT>sys.exit(str(ex))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pathobj = _construct_path_object(**kwargs)<EOL>try:<EOL><INDENT>handle_path(pathobj)<EOL><DEDENT>except (RepexError, IOError, OSError) as ex:<EOL><INDENT>sys.exit(str(ex))<EOL><DEDENT><DEDENT>
Replace strings in one or multiple files.

    You must either provide `REGEX_PATH` or use the `-c` flag
    to provide a valid repex configuration.

    `REGEX_PATH` can be: a regex of paths under `basedir`,
    a path to a single directory under `basedir`,
    or a path to a single file.

    It's important to note that if the `REGEX_PATH` is a path to a
    directory, the `-t,--ftype` flag must be provided.