diff options
author | Teddy Wing | 2020-08-02 09:48:07 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-02 09:57:26 +0200 |
commit | c6ac35a6af7b9c00ba9341ecfff496da86bfab76 (patch) | |
tree | 27ca1123b4016d0b95f5e6fcf3f1e8eb6e327fa4 /src/suggestion.rs | |
parent | b5f9bcca207ddb312adcf8e63ac7a430b6f0902f (diff) | |
download | git-suggestion-c6ac35a6af7b9c00ba9341ecfff496da86bfab76.tar.bz2 |
Add `-h` argument
Print usage on `-h` and `--help`.
Store the usage brief on `Config` in order to be able to print it from
multiple places.
Diffstat (limited to 'src/suggestion.rs')
-rw-r--r-- | src/suggestion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/suggestion.rs b/src/suggestion.rs index fc22a7c..f1684e0 100644 --- a/src/suggestion.rs +++ b/src/suggestion.rs @@ -9,7 +9,7 @@ use crate::arg::is_suggestion_id; use crate::config::Config; -pub fn for_suggestion<F>(config: &Config, f: F) +pub fn for_suggestion<F>(config: &Config<'_>, f: F) where F: Fn(&Suggestion) { for suggestion_arg in &config.suggestions { |