fix: Reddit 子版块列表页支持 + --version 参数
- reddit.py: 新增 _parse_listing() 处理 /r/sub/hot|new|top 等列表页 之前只能读单个帖子,列表页直接报 ValueError - cli.py: 添加 --version flag (标准 CLI 惯例)
This commit is contained in:
parent
30f11bb6e4
commit
3efc8d1d55
2 changed files with 51 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ def main():
|
|||
description="👁️ Give your AI Agent eyes to see the entire internet",
|
||||
)
|
||||
parser.add_argument("-v", "--verbose", action="store_true", help="Show debug logs")
|
||||
parser.add_argument("--version", action="version", version=f"Agent Reach v{__version__}")
|
||||
sub = parser.add_subparsers(dest="command", help="Available commands")
|
||||
|
||||
# ── read ──
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue