

from argparse import ArgumentParser

from .env import EnvironmentCommand




def 			UpperCAmelCase__				(			):





  '''simple docstring'''







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

  # Register commands
  EnvironmentCommand.register_subcommand(_A							)

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

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

  # Run
  a__  =args.func(_A							)
  service.run()


if __name__ == "__main__":
       main()



from __future__ import annotations




def 			UpperCAmelCase__				(			_A      : float	,      _A      : float	,      _A      : float	,      ):





  '''simple docstring'''







  if (stress, tangential_force, area).count(0							) != 1:
    raise ValueError('''You cannot supply more or less than 2 values'''							)
  elif stress < 0:
    raise ValueError('''Stress cannot be negative'''							)
  elif tangential_force < 0:
    raise ValueError('''Tangential Force cannot be negative'''							)
  elif area < 0:
    raise ValueError('''Area cannot be negative'''							)
  elif stress == 0:
    return (
        "stress",
        tangential_force / area,
    )
  elif tangential_force == 0:
    return (
        "tangential_force",
        stress * area,
    )
  else:
    return (
        "area",
        tangential_force / stress,
    )


if __name__ == "__main__":
       import doctest

       doctest.testmod()
