@click.command()<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>default=ROOT_REQUIREMENTS,<EOL>help="<STR_LIT>",<EOL>show_default=True,<EOL>show_envvar=True,<EOL>type=click.Path(dir_okay=False, readable=True),<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>is_flag=True,<EOL>show_envvar=True,<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>default=ROOT_PIPFILE,<EOL>help="<STR_LIT>",<EOL>show_default=True,<EOL>show_envvar=True,<EOL>type=click.Path(exists=True, dir_okay=False, readable=True),<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>is_flag=True,<EOL>help="<STR_LIT>",<EOL>show_envvar=True,<EOL>)<EOL>def main(requirements_file, skip_requirements_file, pipfile, skip_pipfile):<EOL>
pipfile_path = path.Path(pipfile)<EOL>pf = load_pipfile(pipfile_path)<EOL>if not skip_requirements_file:<EOL><INDENT>requirements_file_path = path.Path(requirements_file)<EOL>update_requirements(requirements_file_path, pf)<EOL><DEDENT>if not skip_pipfile:<EOL><INDENT>dump_pipfile(pipfile_path, pf)<EOL><DEDENT>
Update the requirements.txt file and reformat the Pipfile.