aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/git-sugpatch.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/git-sugpatch.rs b/src/bin/git-sugpatch.rs
index c8fc0a8..10499e9 100644
--- a/src/bin/git-sugpatch.rs
+++ b/src/bin/git-sugpatch.rs
@@ -10,7 +10,10 @@ use github_suggestion_cli::config::Config;
fn main() {
let args: Vec<_> = env::args().collect();
- let config = match Config::get(&args) {
+ let config = match Config::get(
+ &args,
+ "usage: git sugpatch [options] <suggestion>...",
+ ) {
Ok(c) => c,
Err(e) => {
gseprintln!(e);
@@ -20,10 +23,7 @@ fn main() {
};
if config.suggestions.is_empty() {
- print!(
- "{}",
- config.usage("usage: git sugpatch [options] <suggestion>..."),
- );
+ config.print_usage();
process::exit(exitcode::USAGE);
}