


'''simple docstring'''






import argparse

from .config import config_command_parser
from .config_args import default_config_file, load_config_from_file  # noqa: F401
from .default import default_command_parser
from .update import update_command_parser






def 		_A (lowerCAmelCase__     :Dict=None						)      ->     Any:




     '''simple docstring'''



     _a						=							argparse.ArgumentParser(add_help=__SCREAMING_SNAKE_CASE ,  allow_abbrev=__SCREAMING_SNAKE_CASE						)
     # The main config parser
     _a						=							config_command_parser(__SCREAMING_SNAKE_CASE						)
     # The subparser to add commands to
     _a						=							config_parser.add_subparsers(title='subcommands' ,  dest='subcommand'						)

     # Then add other parsers with the parent parser
     default_command_parser(__SCREAMING_SNAKE_CASE ,  parents=[parent_parser]						)
     update_command_parser(__SCREAMING_SNAKE_CASE ,  parents=[parent_parser]						)

     return config_parser






def 		_A ()      ->     Any:




     '''simple docstring'''



     _a						=							get_config_parser()
     _a						=							config_parser.parse_args()

     if not hasattr(__SCREAMING_SNAKE_CASE ,  'func'						):
          config_parser.print_help()
          exit(1						)

     # Run
     args.func(__SCREAMING_SNAKE_CASE						)


if __name__ == "__main__":
 main()



'''simple docstring'''







def 					snake_case_		(				__SCREAMING_SNAKE_CASE					: str      ,      __SCREAMING_SNAKE_CASE					: str							):



						"""simple docstring"""





						lowercase_	:     List[str]													=       len(__SCREAMING_SNAKE_CASE							)
						lowercase_	:     Optional[int]													=       []
						for i in range(len(__SCREAMING_SNAKE_CASE							) - pat_len + 1							):
												lowercase_	:     Tuple													=       True
												for j in range(__SCREAMING_SNAKE_CASE							):
																		if s[i + j] != pattern[j]:
																								lowercase_	:     List[str]													=       False
																								break
												if match_found:
																		position.append(__SCREAMING_SNAKE_CASE							)
						return position


if __name__ == "__main__":
							assert naive_pattern_search("ABCDEFG", "DE") == [3]
							print(naive_pattern_search("ABAAABCDBBABCDDEBCABC", "ABC"))



