INNER CODE UNIT · Python

main

Cooler2/ApusGameEngine · tools/normalize_indent.py:407

def main():
    parser = argparse.ArgumentParser(description='Normalize Pascal indentation to 2 spaces.')
    parser.add_argument('--dry-run', action='store_true',
                        help='Show changes without writing files')
    parser.add_argument('--dir', default='.',
                        help='Root directory to process (default: .)')
    parser.add_argument('--file', dest='single_file',
                        help='Process a single file only')
    parser.add_argument('--include-extra', action='store_true',
                        help='Include extra/ directory (3rd-party code)')
    parser.add_argument('--include-tmp', action='store_true',
                        help='Include tmp/ directory (git worktrees)')
    parser.add_argument('--threshold', type=int, default=20,
                        help='Odd-%% threshold for 1-space detection (default 20)')
    parser.add_argument('--flag-above', type=int, default=12,
                        help='Flag lines with source indent > N (default 12)')
    args = parser.parse_args()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…