def add_general_arguments(parser: argparse.ArgumentParser): add_config_param(parser) parser.add_argument( "-o", "--out", type=str, default=DEFAULT_MODELS_PATH, help="Directory where your models are stored")
def add_subparser(subparsers: argparse._SubParsersAction, parents: List[argparse.ArgumentParser]): show_parser = subparsers.add_parser( "show", parents=parents, conflict_handler="resolve", formatter_class=argparse.ArgumentDefaultsHelpFormatter, help="Visualize Rasa Stack data") show_subparsers = show_parser.add_subparsers() show_stories_subparser = show_subparsers.add_parser( "stories", conflict_handler='resolve', parents=parents, formatter_class=argparse.ArgumentDefaultsHelpFormatter, help="Show Rasa Core stories") add_core_visualization_params(show_stories_subparser) add_config_param(show_stories_subparser) show_stories_subparser.set_defaults(func=show_stories) show_parser.set_defaults(func=lambda _: show_parser.print_help(None))