Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support single dash as positional #49

Merged
merged 7 commits into from
Feb 5, 2022

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Jan 25, 2022

We need to do "something" with a single dash, and I think it is appropriate to treat it as a positional.

The canonical use is as per the README, a shortcut for stdin/stdout (depending on context).

(I speculate the README said "no" more because didn't want to commit to how it would be handled than because it shouldn't be a positional.)

For prior art, Commander allows single dash as a positional and also as an option value. This PR only addresses the positional, partly as less likely to be controversial, but also because less likely to conflict with other open Pull Requests!

@shadowspawn shadowspawn changed the title fix: support single dash as positional feat: support single dash as positional Jan 25, 2022
@bcoe bcoe merged commit d795bf8 into pkgjs:main Feb 5, 2022
@shadowspawn shadowspawn deleted the feature/lone-dash branch February 5, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants