rasa/cli/utils.py
def parse_last_positional_argument_as_model_path() -> None:
    """Fixes the parsing of a potential positional model path argument."""
    import sys

    if (len(sys.argv) >= 2 and
            sys.argv[1] in ["run", "test", "shell", "interactive"] and not
            sys.argv[-2].startswith('-') and
            os.path.exists(sys.argv[-1])):
        sys.argv.append(sys.argv[-1])
        sys.argv[-2] = "--model"
Fixes the parsing of a potential positional model path argument.
Fixes the parsing of a potential positional model path argument.
Fixes the parsing of a potential positional model path argument .
def parse_last_positional_argument_as_model_path() -> None:
    import sys
    if (len(sys.argv) >= 2 and
            sys.argv[1] in ["run", "test", "shell", "interactive"] and not
            sys.argv[-2].startswith('-') and
            os.path.exists(sys.argv[-1])):
        sys.argv.append(sys.argv[-1])
        sys.argv[-2] = "--model"
def parse_last_positional_argument_as_model_path ( ) -> None : import sys if ( len ( sys . argv ) >= 2 and sys . argv [ 1 ] in [ "run" , "test" , "shell" , "interactive" ] and not sys . argv [ - 2 ] . startswith ( '-' ) and os . path . exists ( sys . argv [ - 1 ] ) ) : sys . argv . append ( sys . argv [ - 1 ] ) sys . argv [ - 2 ] = "--model"
Fixes the parsing of a potential positional model path argument.
Fixes the parsing of a potential positional model path argument .
"""Fixes the parsing of a potential positional model path argument."""