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

docs: add example of implementing optional-value #155

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

shadowspawn
Copy link
Collaborator

Provide an example of implementing optional option values on top of parseArgs.

People ask about adding this as a feature, which we do not think is appropriate in parseArgs due to making the parsing ambiguous.

See:

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after comment is fixed

examples/optional-value.mjs Outdated Show resolved Hide resolved
Co-authored-by: Jordan Harband <[email protected]>
@shadowspawn shadowspawn merged commit 84c41f8 into pkgjs:main Aug 19, 2024
5 checks passed
@shadowspawn shadowspawn deleted the add-optional-vaue-example branch August 19, 2024 07:27
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.

2 participants