



from argparse import ArgumentParser

from .env import EnvironmentCommand






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

					# Register commands
					EnvironmentCommand.register_subcommand(__lowerCamelCase	)

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

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

					# Run
					__lowerCAmelCase	   =args.func(__lowerCamelCase	)
					service.run()


if __name__ == "__main__":
				main()









def 					__lowerCAmelCase		(  __lowerCamelCase	:    list	)  ->						list:
					if len(__lowerCamelCase	) <= 1:
										return lst

					__lowerCAmelCase	   =1

					while i < len(__lowerCamelCase	):
										if lst[i - 1] <= lst[i]:
															i += 1
										else:
															__lowerCAmelCase   ,	__lowerCAmelCase	   =lst[i], lst[i - 1]
															i -= 1
															if i == 0:
																				__lowerCAmelCase	   =1

					return lst


if __name__ == "__main__":
				lowercase_	       =			input('''Enter numbers separated by a comma:\n''').strip()
				lowercase_	       =			[int(item) for item in user_input.split(''',''')]
				print(gnome_sort(unsorted))




