Skip to content

docs: update Arg::default_missing_value description#5531

Open
hawkinsw wants to merge 1 commit intoclap-rs:masterfrom
hawkinsw:default_missing_value_docs
Open

docs: update Arg::default_missing_value description#5531
hawkinsw wants to merge 1 commit intoclap-rs:masterfrom
hawkinsw:default_missing_value_docs

Conversation

@hawkinsw
Copy link
Copy Markdown

Fix minor grammatical error and reword for clarity.

@hawkinsw
Copy link
Copy Markdown
Author

I think that the clap is the easiest, best argument-parsing library I have ever used. Thank you for all that you all do to maintain it. I hope that this little documentation PR is helpful. I tried to follow all the procedures.

Thank you, again!

Fix minor grammatical error and reword for clarity.
@hawkinsw hawkinsw force-pushed the default_missing_value_docs branch from 9537fa7 to c9ad502 Compare June 12, 2024 21:00
Comment on lines +1742 to +1743
/// Configure a command-line argument that gives the user a shortcut and allows them to
/// efficiently select an option without requiring an explicit value. The `--color`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

RE specify vs select

I feel like "select" would be "choosing an option from a drop down" while "specify" better connotes "write this out".

///
/// This configuration option is often used to give the user a shortcut and allow them to
/// efficiently specify an option argument without requiring an explicitly value. The `--color`
/// Configure a command-line argument that gives the user a shortcut and allows them to
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Rather than giving an example of where this might be useful, this switches to more of an imperative tone that feels off putting. This would work better for a brief description but doesn't quite work for an example

///
/// This configuration option is often used to give the user a shortcut and allow them to
/// efficiently specify an option argument without requiring an explicitly value. The `--color`
/// Configure a command-line argument that gives the user a shortcut and allows them to
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

command-line argument

"command-line" is implied from context of this library and makes this overly verbose.

"option" is more specific than "argument" as this isn't as useful for positional arguments.

@epage
Copy link
Copy Markdown
Member

epage commented Jun 12, 2024

Thanks for wanting to help improve the docs! Looking forward to what comes out of our collaboration on this!

@hawkinsw
Copy link
Copy Markdown
Author

Thanks for wanting to help improve the docs! Looking forward to what comes out of our collaboration on this!

Thank you for the quick reply! I am sorry that I didn't have time to spin another version of the PR tonight. I will incorporate your comments in a version that I hope I can get out tomorrow!

Thank you again for the quick response!
Will

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