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

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

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1942
Author: @cfsmp3
Created: 12/31/2025
Status: Merged
Merged: 1/1/2026
Merged by: @cfsmp3

Base: masterHead: fix/legacy-argument-aliases


📝 Commits (2)

  • 031f463 fix(args): Add legacy aliases for backwards compatibility
  • f1681ee fix(args): Add support for legacy -1, -2, -12 numeric options

📊 Changes

2 files changed (+27 additions, -13 deletions)

View changed files

📝 src/rust/src/args.rs (+7 -7)
📝 src/rust/src/lib.rs (+20 -6)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1942 **Author:** [@cfsmp3](https://github.com/cfsmp3) **Created:** 12/31/2025 **Status:** ✅ Merged **Merged:** 1/1/2026 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `fix/legacy-argument-aliases` --- ### 📝 Commits (2) - [`031f463`](https://github.com/CCExtractor/ccextractor/commit/031f463b5ced7bb6b99689188204d1580df4b394) fix(args): Add legacy aliases for backwards compatibility - [`f1681ee`](https://github.com/CCExtractor/ccextractor/commit/f1681ee92902adb1bfb4841abaa739b3b873825f) fix(args): Add support for legacy -1, -2, -12 numeric options ### 📊 Changes **2 files changed** (+27 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/rust/src/args.rs` (+7 -7) 📝 `src/rust/src/lib.rs` (+20 -6) </details> ### 📄 Description ## 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:23:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2741