INNER CODE UNIT · Python

get_combined_args

jayin92/Skyfall-GS · arguments/__init__.py:287

def get_combined_args(parser: ArgumentParser) -> Namespace:
    """
    Combine command line arguments with saved configuration file.
    
    Args:
        parser: ArgumentParser with defined arguments
        
    Returns:
        Namespace with merged arguments (command line takes precedence)
    """
    # Parse command line arguments
    cmdline_args = parser.parse_args(sys.argv[1:])
    
    # Try to load saved configuration
    config_args = Namespace()
    try:
        if cmdline_args.model_path:
            config_path = Path(cmdline_args.model_path) / "cfg_args"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…