
from argparse import ArgumentParser

from .env import EnvironmentCommand


def 			UpperCAmelCase_     (  )       ->  Dict:
    __lowercase						:	Any					=				ArgumentParser('''Diffusers CLI tool'''		,    usage='''diffusers-cli <command> [<args>]'''		)
    __lowercase						:	Optional[Any]					=				parser.add_subparsers(help='''diffusers-cli command helpers'''		)

    # Register commands
    EnvironmentCommand.register_subcommand(_SCREAMING_SNAKE_CASE		)

    # Let's go
    __lowercase						:	Optional[Any]					=				parser.parse_args()

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

    # Run
    __lowercase						:	List[str]					=				args.func(_SCREAMING_SNAKE_CASE		)
    service.run()


if __name__ == "__main__":
 main()









from argparse import ArgumentParser

from .env import EnvironmentCommand



def    __lowercase   (      ) ->   Dict:


      '''simple docstring'''


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

      # Register commands
      EnvironmentCommand.register_subcommand(_SCREAMING_SNAKE_CASE	)

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

      if not hasattr(_SCREAMING_SNAKE_CASE ,						"""func"""	):
            parser.print_help()
            exit(1	)

      # Run
      SCREAMING_SNAKE_CASE		=						args.func(_SCREAMING_SNAKE_CASE	)
      service.run()


if __name__ == "__main__":
      main()


