'''simple docstring'''


from argparse import ArgumentParser

from .env import EnvironmentCommand





def       lowerCAmelCase					(		):


	"""simple docstring"""
	__UpperCAmelCase							=			ArgumentParser('''Diffusers CLI tool'''    ,					usage='''diffusers-cli <command> [<args>]'''       )
	__UpperCAmelCase							=			parser.add_subparsers(help='''diffusers-cli command helpers'''       )

	# Register commands
	EnvironmentCommand.register_subcommand(UpperCamelCase__       )

	# Let's go
	__UpperCAmelCase							=			parser.parse_args()

	if not hasattr(UpperCamelCase__    ,					'''func'''       ):
		parser.print_help()
		exit(1       )

	# Run
	__UpperCAmelCase							=			args.func(UpperCamelCase__       )
	service.run()


if __name__ == "__main__":
					main()

'''simple docstring'''


import warnings

from diffusers import StableDiffusionImgaImgPipeline  # noqa F401


warnings.warn(
    "The `image_to_image.py` script is outdated. Please use directly `from diffusers import"
    " StableDiffusionImg2ImgPipeline` instead."
)
