fix: replace unicode arrows in CLI help text for Windows cp1252 compatibility
Replace → (U+2192) with -> in argparse help strings. Windows cmd uses cp1252 encoding which cannot render unicode arrows, causing --help to crash with UnicodeEncodeError.
This commit is contained in:
@@ -26,7 +26,7 @@ ENHANCE_ARGUMENTS: dict[str, dict[str, Any]] = {
|
||||
"help": (
|
||||
"AI platform for enhancement (uses API mode). "
|
||||
"Auto-detected from env vars if not specified: "
|
||||
"ANTHROPIC_API_KEY→claude, GOOGLE_API_KEY→gemini, OPENAI_API_KEY→openai. "
|
||||
"ANTHROPIC_API_KEY->claude, GOOGLE_API_KEY->gemini, OPENAI_API_KEY->openai. "
|
||||
"Falls back to LOCAL mode (Claude Code CLI) when no API keys are found."
|
||||
),
|
||||
"metavar": "PLATFORM",
|
||||
|
||||
@@ -626,17 +626,17 @@ Examples:
|
||||
Config: skill-seekers create configs/react.json
|
||||
|
||||
Source Auto-Detection:
|
||||
• URLs/domains → web scraping
|
||||
• owner/repo → GitHub analysis
|
||||
• ./path → local codebase
|
||||
• file.pdf → PDF extraction
|
||||
• file.docx → Word document extraction
|
||||
• file.epub → EPUB extraction
|
||||
• youtube.com/... → Video transcript extraction
|
||||
• file.mp4 → Video file extraction
|
||||
• file.json → multi-source config
|
||||
URLs/domains -> web scraping
|
||||
owner/repo -> GitHub analysis
|
||||
./path -> local codebase
|
||||
file.pdf -> PDF extraction
|
||||
file.docx -> Word document extraction
|
||||
file.epub -> EPUB extraction
|
||||
youtube.com/... -> Video transcript extraction
|
||||
file.mp4 -> Video file extraction
|
||||
file.json -> multi-source config
|
||||
|
||||
Progressive Help (13 → 120+ flags):
|
||||
Progressive Help (13 -> 120+ flags):
|
||||
--help-web Web scraping options
|
||||
--help-github GitHub repository options
|
||||
--help-local Local codebase analysis
|
||||
|
||||
@@ -35,8 +35,8 @@ Quick Examples:
|
||||
skill-seekers create ./my-project -p comprehensive
|
||||
|
||||
Source Types (auto-detected):
|
||||
URLs → web docs | owner/repo → GitHub | ./path → local code
|
||||
file.pdf → PDF | file.json → config (multi-source)
|
||||
URLs -> web docs | owner/repo -> GitHub | ./path -> local code
|
||||
file.pdf -> PDF | file.json -> config (multi-source)
|
||||
|
||||
Progressive Help (NEW -p shortcut):
|
||||
Default help shows 13 flags. For more: --help-web, --help-github,
|
||||
|
||||
@@ -12,7 +12,7 @@ class InstallParser(SubcommandParser):
|
||||
|
||||
@property
|
||||
def help(self) -> str:
|
||||
return "Complete workflow: fetch → scrape → enhance → package → upload"
|
||||
return "Complete workflow: fetch -> scrape -> enhance -> package -> upload"
|
||||
|
||||
@property
|
||||
def description(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user