INNER CODE UNIT · Python

main

magicsword-io/LOLRMM · bin/fix_yaml_formatting.py:143

def main():
    import sys

    # Check if a specific file was provided as argument
    if len(sys.argv) > 1:
        file_path = Path(sys.argv[1])
        if not file_path.exists():
            print(f"Error: File {file_path} not found")
            return

        print(f"Processing 1 file: {file_path}")
        success, error = fix_yaml_file(file_path)
        if success:
            print(f"[+] Successfully fixed {file_path}")
        else:
            print(f"[-] Error processing {file_path.name}: {error}")
        return

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…