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

Rework option inline doc #2009

Merged
merged 3 commits into from
Sep 10, 2023

Conversation

shadowspawn
Copy link
Collaborator

Pull Request

Problem

The inline documentation for .option() dates back to early days when it was used to generate the online documentation. It was quite lengthy covering the flags but not much else. In particular the custom argument parsing was named simply fn and easily missed.

Related: #1909 #1953

Solution

Rename fn to parseArg for better clue! Shorten the examples, and call-out to the README and other related functions.

Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

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

👍

@shadowspawn shadowspawn merged commit e85e05a into tj:develop Sep 10, 2023
@shadowspawn shadowspawn deleted the feature/rework-option-inline-doc branch September 10, 2023 05:51
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Sep 10, 2023
@shadowspawn
Copy link
Collaborator Author

Shipped in Commander v11.1.0

@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Oct 13, 2023
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