rasa/__main__.py
def create_argument_parser() -> argparse.ArgumentParser:
    """Parse all the command line arguments for the training script."""

    parser = argparse.ArgumentParser(
        prog="rasa",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        description="Rasa command line interface. Rasa allows you to build "
                    "your own conversational assistants 🤖. The 'rasa' command "
                    "allows you to easily run most common commands like "
                    "creating a new bot, training or evaluating models.")

    parser.add_argument("--version", action='store_true',
                        default=argparse.SUPPRESS,
                        help="Print installed Rasa version")

    parent_parser = argparse.ArgumentParser(add_help=False)
    add_logging_option_arguments(parent_parser)
    parent_parsers = [parent_parser]

    subparsers = parser.add_subparsers(help='Rasa commands')

    scaffold.add_subparser(subparsers, parents=parent_parsers)
    run.add_subparser(subparsers, parents=parent_parsers)
    shell.add_subparser(subparsers, parents=parent_parsers)
    train.add_subparser(subparsers, parents=parent_parsers)
    interactive.add_subparser(subparsers, parents=parent_parsers)
    test.add_subparser(subparsers, parents=parent_parsers)
    show.add_subparser(subparsers, parents=parent_parsers)
    data.add_subparser(subparsers, parents=parent_parsers)
    up.add_subparser(subparsers, parents=parent_parsers)

    return parser
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script .
def create_argument_parser() -> argparse.ArgumentParser:
    parser = argparse.ArgumentParser(
        prog="rasa",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        description="Rasa command line interface. Rasa allows you to build "
                    "your own conversational assistants 🤖. The 'rasa' command "
                    "allows you to easily run most common commands like "
                    "creating a new bot, training or evaluating models.")
    parser.add_argument("--version", action='store_true',
                        default=argparse.SUPPRESS,
                        help="Print installed Rasa version")
    parent_parser = argparse.ArgumentParser(add_help=False)
    add_logging_option_arguments(parent_parser)
    parent_parsers = [parent_parser]
    subparsers = parser.add_subparsers(help='Rasa commands')
    scaffold.add_subparser(subparsers, parents=parent_parsers)
    run.add_subparser(subparsers, parents=parent_parsers)
    shell.add_subparser(subparsers, parents=parent_parsers)
    train.add_subparser(subparsers, parents=parent_parsers)
    interactive.add_subparser(subparsers, parents=parent_parsers)
    test.add_subparser(subparsers, parents=parent_parsers)
    show.add_subparser(subparsers, parents=parent_parsers)
    data.add_subparser(subparsers, parents=parent_parsers)
    up.add_subparser(subparsers, parents=parent_parsers)
    return parser
def create_argument_parser ( ) -> argparse . ArgumentParser : parser = argparse . ArgumentParser ( prog = "rasa" , formatter_class = argparse . ArgumentDefaultsHelpFormatter , description = "Rasa command line interface. Rasa allows you to build " "your own conversational assistants 🤖. The 'rasa' command " "allows you to easily run most common commands like " "creating a new bot, training or evaluating models." ) parser . add_argument ( "--version" , action = 'store_true' , default = argparse . SUPPRESS , help = "Print installed Rasa version" ) parent_parser = argparse . ArgumentParser ( add_help = False ) add_logging_option_arguments ( parent_parser ) parent_parsers = [ parent_parser ] subparsers = parser . add_subparsers ( help = 'Rasa commands' ) scaffold . add_subparser ( subparsers , parents = parent_parsers ) run . add_subparser ( subparsers , parents = parent_parsers ) shell . add_subparser ( subparsers , parents = parent_parsers ) train . add_subparser ( subparsers , parents = parent_parsers ) interactive . add_subparser ( subparsers , parents = parent_parsers ) test . add_subparser ( subparsers , parents = parent_parsers ) show . add_subparser ( subparsers , parents = parent_parsers ) data . add_subparser ( subparsers , parents = parent_parsers ) up . add_subparser ( subparsers , parents = parent_parsers ) return parser
Parse all the command line arguments for the training script.
Parse all the command line arguments for the training script .
"""Parse all the command line arguments for the training script."""