Skip to content

[Bug]: BOSS直聘 detail 命令无法处理以"-"开头的 security-id 参数 #1160

@KANG99

Description

@KANG99

Description

执行类似 opencli boss detail -123456abdc 报错:unknown option,即使将security-id放在引号里面一样报错。

Steps to Reproduce

1、先搜索相关岗位比如:
opencli search 'ai agent' -city 深圳 -f json获取岗位 security-id
2、通过security-id获取相关岗位信息
opencli detail security-id -f json
3、如果security-id带有横杠直接报错error: unknown option '-xxx'

Expected Behavior

希望能够解决将横杠开头的security-id识别成option的问题,谢谢。

OpenCLI Version

1.7.7

Node.js Version

Other

Operating System

macOS

Logs / Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions