Use clap for git-solo

This commit is contained in:
Martin Frost 2021-12-11 00:14:13 +01:00
parent 7b3a10890d
commit b0067e9115
1 changed files with 5 additions and 5 deletions

View File

@ -1,16 +1,16 @@
use clap::Parser;
use git_mob::{ use git_mob::{
ensure_commit_template_is_set, get_main_author, with_gitmessage_template_path_or_exit, ensure_commit_template_is_set, get_main_author, with_gitmessage_template_path_or_exit,
}; };
use std::fs::File; use std::fs::File;
use structopt::StructOpt;
#[derive(StructOpt)] #[derive(Parser, Debug)]
#[structopt(name="git-solo")] #[clap(name = "git-solo", version)]
/// Disband the mob and continue working solo /// Disband the mob and continue working solo.
struct Opt {} struct Opt {}
fn main() { fn main() {
let _opt = Opt::from_args(); let _opt = Opt::parse();
let main_author = get_main_author(); let main_author = get_main_author();
println!("{}", main_author); println!("{}", main_author);