Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

STDIN/STDOUT reference `-` can't be used as argument

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
lua
Domain
cli

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lunarmodules/lua_cliargs

All issues in lunarmodules/lua_cliargs

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.