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