def add_cli_write_bel_namespace(main: click.Group) -> click.Group:  
@main.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Path(file_okay=False, dir_okay=True), default=os.getcwd(),<EOL>help='<STR_LIT>')<EOL>@click.pass_obj<EOL>def write(manager: BELNamespaceManagerMixin, directory: str):<EOL><INDENT>"""<STR_LIT>"""<EOL>manager.write_directory(directory)<EOL><DEDENT>return main<EOL>
Add a ``write_bel_namespace`` command to main :mod:`click` function.