Skip to content

Conversation

@cfsmp3
Copy link
Contributor

@cfsmp3 cfsmp3 commented Dec 31, 2025

Summary

Add --sc (and -sc) as an alias for --sentencecap for backwards compatibility.

The -sc flag was used in older versions (0.94 and earlier) for sentence capitalization. After the migration to the Rust argument parser, only --sentencecap was accepted.

This is the same pattern used for --svc--service in commit 64ce4ac.

Changes

// Before
#[arg(long, verbatim_doc_comment, help_heading=OUTPUT_AFFECTING_OUTPUT_FILES)]
pub sentencecap: bool,

// After
#[arg(long, alias="sc", verbatim_doc_comment, help_heading=OUTPUT_AFFECTING_OUTPUT_FILES)]
pub sentencecap: bool,

Test plan

$ ./ccextractor --sc
Error: No input file specified  # ✓ Accepts the flag

$ ./ccextractor -sc  
Error: No input file specified  # ✓ Also works with single dash

Related to #1917

🤖 Generated with Claude Code

The -sc flag was used in older versions (0.94 and earlier) for sentence
capitalization. The Rust argument parser only accepts --sentencecap now.
This adds --sc as an alias to maintain backwards compatibility with
older documentation and user scripts.

Related to CCExtractor#1917

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@cfsmp3 cfsmp3 merged commit 26434a7 into CCExtractor:master Dec 31, 2025
23 of 25 checks passed
@cfsmp3 cfsmp3 deleted the fix/sc-alias-backwards-compat branch December 31, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant