[PR #1942] fix(args): Add legacy aliases for backwards compatibility #2745

Closed
opened 2026-01-29 17:23:42 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1942

State: closed
Merged: Yes


Summary

  • Add aliases for 7 options that were commonly used with single-dash or without hyphens in older versions of ccextractor
  • These aliases, combined with normalize_legacy_option() which converts single-dash to double-dash, allow old scripts to continue working

Aliases Added

Legacy Form Canonical Form Alias Added
-pat --parsePAT pat
-pmt --parsePMT pmt
-noteletext --no-teletext noteletext
-noru --no-rollup noru
-nobom --no-bom nobom
-noautotimeref --no-autotimeref noautotimeref
-noscte20 --no-scte20 noscte20

Test plan

  • Build succeeds
  • All 7 legacy forms tested and working:
    • -pat
    • -pmt
    • -noteletext
    • -noru
    • -nobom
    • -noautotimeref
    • -noscte20

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/1942 **State:** closed **Merged:** Yes --- ## Summary - Add aliases for 7 options that were commonly used with single-dash or without hyphens in older versions of ccextractor - These aliases, combined with `normalize_legacy_option()` which converts single-dash to double-dash, allow old scripts to continue working ## Aliases Added | Legacy Form | Canonical Form | Alias Added | |-------------|----------------|-------------| | `-pat` | `--parsePAT` | `pat` | | `-pmt` | `--parsePMT` | `pmt` | | `-noteletext` | `--no-teletext` | `noteletext` | | `-noru` | `--no-rollup` | `noru` | | `-nobom` | `--no-bom` | `nobom` | | `-noautotimeref` | `--no-autotimeref` | `noautotimeref` | | `-noscte20` | `--no-scte20` | `noscte20` | ## Test plan - [x] Build succeeds - [x] All 7 legacy forms tested and working: - `-pat` ✅ - `-pmt` ✅ - `-noteletext` ✅ - `-noru` ✅ - `-nobom` ✅ - `-noautotimeref` ✅ - `-noscte20` ✅ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claunia added the pull-request label 2026-01-29 17:23:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2745