STDIN/STDOUT reference `-` can't be used as argument
还没有人认领这个 Issue。
评估
调研方向
首先跟踪示例 my_cmd -f - 的命令行参数解析路径,并将其与 -- 分隔符之后的处理进行比较。当 - 在预期上下文中被接受为 stdin 或 stdout 参数,且不会破坏普通选项解析时,问题就解决了。
由索引模型根据 Issue 内容生成。
描述
In most *nix tooling, - can be used as an alias for either /dev/stdin or /dev/stdout (depending on what is expected in the context). I can't figure out how to pars thet using this library. It looks like it is parsable as an argument after a -- separator, but in all other circumstances (where it might be expected)
Sample expected usage:
$ my_cmd -f -
- 主要语言
- Lua
- 星标
- 129
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lunarmodules/lua_cliargs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
lunarmodules/lua_cliargs#85 · 1 条评论 ·
-
Parsing --help needs to return something other than an error可能已有人在做 @TheMagician23 于 1039 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
lunarmodules/lua_cliargs#72 · 1 条评论 ·
-
Option to accept multiple options not documented可能已有人在做 @copilot-swe-agent 于 76 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 48/100
lunarmodules/lua_cliargs#70 ·
-
难度 3/5 1-2 天 新手友好度 55/100
lunarmodules/lua_cliargs#69 ·
-
难度 3/5 1-2 天 新手友好度 35/100
lunarmodules/lua_cliargs#68 ·
查看 lunarmodules/lua_cliargs 的全部 Issue
相似的 Issue
-
feature-request mini.icons
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
beyond-all-reason/BYAR-Chobby#1274 ·
维护者通常 1 天内回复
-
crash-guard.sh reads the CRASH_AB_OK=1 marker from the raw hook input, the description field included可能已有人在做 @lneto 于 1 天前认领。 未关闭severity: low
难度 2/5 1-3 小时 新手友好度 89/100
luainkernel/lunatik#1902 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复