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

doc: switch legacy .argv to .parse() #2346

Merged
merged 3 commits into from Jan 5, 2024
Merged

Conversation

shadowspawn
Copy link
Member

@shadowspawn shadowspawn commented Jul 16, 2023

This PR is acting on notes in #2045 (comment)

The magic yargs.argv mystified me, until I found it is a getter. I have switched the user facing uses of .argv in documentation and examples to .parse().

Supporting links for making the change:

I have not updated all the tests, as it was going to trigger big code reformats. On that note, this PR may clash miserably with #2172 and might need to redo one or the other! But should be easy to redo the formatting steps rather than do a cold merge.

@bcoe bcoe merged commit 0c95f9c into yargs:main Jan 5, 2024
7 checks passed
@shadowspawn shadowspawn deleted the argv-to-parse branch January 5, 2024 21:06
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.

None yet

2 participants