Skip to content

Conversation

@dconnolly
Copy link

This lets impl's of Options call the default --help output whenever their own top-level logic may require it.

///
/// Useful for printing the same --help or default no-args output
/// for multiple cases.
fn print_usage(opts: Self) {
Copy link
Owner

Choose a reason for hiding this comment

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

Is there any reason this can't be &self?

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