Skip to content

Add examples for required and repeated options - #142

Open
Herrtian wants to merge 1 commit into
rust-lang:masterfrom
Herrtian:docs/add-usage-examples
Open

Add examples for required and repeated options#142
Herrtian wants to merge 1 commit into
rust-lang:masterfrom
Herrtian:docs/add-usage-examples

Conversation

@Herrtian

Copy link
Copy Markdown

Summary

  • add a runnable example for required options and parse errors
  • add a runnable example for repeated option values and flags
  • link both examples and their commands from the README

Addresses #44.

Testing

  • cargo test --all-targets
  • cargo test --all-targets --no-default-features
  • cargo run --example required_option -- --config config.toml
  • cargo run --example repeated_options -- -vv -I src --include vendor

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.

1 participant