






"""simple docstring"""

from argparse import ArgumentParser

from datasets.commands.convert import ConvertCommand
from datasets.commands.dummy_data import DummyDataCommand
from datasets.commands.env import EnvironmentCommand
from datasets.commands.run_beam import RunBeamCommand
from datasets.commands.test import TestCommand
from datasets.utils.logging import set_verbosity_info

def 						__lowerCamelCase      (    __UpperCamelCase			)		->       List[Any]:

		"""simple docstring"""







		return {key.lstrip("-"			): value for key, value in zip(unknown_args[::2] ,			unknown_args[1::2]			)}

def 						__lowerCamelCase      (    )		->       Tuple:

		"""simple docstring"""







		lowerCAmelCase_  :				Any   							=     ArgumentParser(
		    "HuggingFace Datasets CLI tool" ,			usage="datasets-cli <command> [<args>]" ,			allow_abbrev=__SCREAMING_SNAKE_CASE			)
		lowerCAmelCase_  :				Dict   							=     parser.add_subparsers(help="datasets-cli command helpers"			)
		set_verbosity_info()

		# Register commands
		ConvertCommand.register_subcommand(__SCREAMING_SNAKE_CASE			)
		EnvironmentCommand.register_subcommand(__SCREAMING_SNAKE_CASE			)
		TestCommand.register_subcommand(__SCREAMING_SNAKE_CASE			)
		RunBeamCommand.register_subcommand(__SCREAMING_SNAKE_CASE			)
		DummyDataCommand.register_subcommand(__SCREAMING_SNAKE_CASE			)

		# Parse args
		lowerCAmelCase_  :				Optional[Any]   							=     parser.parse_known_args()
		if not hasattr(__SCREAMING_SNAKE_CASE ,			"func"			):
				parser.print_help()
				exit(1			)
		lowerCAmelCase_  :				Any   							=     parse_unknown_args(__SCREAMING_SNAKE_CASE			)

		# Run
		lowerCAmelCase_  :				Any   							=     args.func(__SCREAMING_SNAKE_CASE ,			**__SCREAMING_SNAKE_CASE			)
		service.run()


if __name__ == "__main__":
					main()






'''simple docstring'''






# flake8: noqa
# Lint as: python3
A_			      =		[
    "VerificationMode",
    "Version",
    "disable_progress_bar",
    "enable_progress_bar",
    "is_progress_bar_enabled",
    "experimental",
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental
