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": (
|
"help": (
|
||||||
"AI platform for enhancement (uses API mode). "
|
"AI platform for enhancement (uses API mode). "
|
||||||
"Auto-detected from env vars if not specified: "
|
"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."
|
"Falls back to LOCAL mode (Claude Code CLI) when no API keys are found."
|
||||||
),
|
),
|
||||||
"metavar": "PLATFORM",
|
"metavar": "PLATFORM",
|
||||||
|
|||||||
@@ -626,17 +626,17 @@ Examples:
|
|||||||
Config: skill-seekers create configs/react.json
|
Config: skill-seekers create configs/react.json
|
||||||
|
|
||||||
Source Auto-Detection:
|
Source Auto-Detection:
|
||||||
• URLs/domains → web scraping
|
URLs/domains -> web scraping
|
||||||
• owner/repo → GitHub analysis
|
owner/repo -> GitHub analysis
|
||||||
• ./path → local codebase
|
./path -> local codebase
|
||||||
• file.pdf → PDF extraction
|
file.pdf -> PDF extraction
|
||||||
• file.docx → Word document extraction
|
file.docx -> Word document extraction
|
||||||
• file.epub → EPUB extraction
|
file.epub -> EPUB extraction
|
||||||
• youtube.com/... → Video transcript extraction
|
youtube.com/... -> Video transcript extraction
|
||||||
• file.mp4 → Video file extraction
|
file.mp4 -> Video file extraction
|
||||||
• file.json → multi-source config
|
file.json -> multi-source config
|
||||||
|
|
||||||
Progressive Help (13 → 120+ flags):
|
Progressive Help (13 -> 120+ flags):
|
||||||
--help-web Web scraping options
|
--help-web Web scraping options
|
||||||
--help-github GitHub repository options
|
--help-github GitHub repository options
|
||||||
--help-local Local codebase analysis
|
--help-local Local codebase analysis
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ Quick Examples:
|
|||||||
skill-seekers create ./my-project -p comprehensive
|
skill-seekers create ./my-project -p comprehensive
|
||||||
|
|
||||||
Source Types (auto-detected):
|
Source Types (auto-detected):
|
||||||
URLs → web docs | owner/repo → GitHub | ./path → local code
|
URLs -> web docs | owner/repo -> GitHub | ./path -> local code
|
||||||
file.pdf → PDF | file.json → config (multi-source)
|
file.pdf -> PDF | file.json -> config (multi-source)
|
||||||
|
|
||||||
Progressive Help (NEW -p shortcut):
|
Progressive Help (NEW -p shortcut):
|
||||||
Default help shows 13 flags. For more: --help-web, --help-github,
|
Default help shows 13 flags. For more: --help-web, --help-github,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class InstallParser(SubcommandParser):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def help(self) -> str:
|
def help(self) -> str:
|
||||||
return "Complete workflow: fetch → scrape → enhance → package → upload"
|
return "Complete workflow: fetch -> scrape -> enhance -> package -> upload"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self) -> str:
|
def description(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user