STDIN/STDOUT reference `-` can't be used as argument
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing the command-line argument parsing path for the sample my_cmd -f - and compare it with handling after a -- separator. The issue is resolved when - is accepted as the stdin or stdout argument in the expected context without breaking ordinary option parsing.
Written by the indexing model from the issue text.
Description
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 -
- Dominant language
- Lua
- Stars
- 129
- Forks
- 26
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lunarmodules/lua_cliargs
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lunarmodules/lua_cliargs#85 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
lunarmodules/lua_cliargs#72 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
lunarmodules/lua_cliargs#70 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
lunarmodules/lua_cliargs#69 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
lunarmodules/lua_cliargs#68 ·
All issues in lunarmodules/lua_cliargs
Similar issues
-
bug
Difficulty 2/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
omacom/omarchy#14075 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
ai-authored
Difficulty 2/5 1-3 hours Newbie friendliness 88/100