Add structopt for git-solo

This means that we can run `git-solo --help` and get some information on
what that command is doing. This was missing before.
This commit is contained in:
Martin Frost 2021-12-10 23:48:46 +01:00
parent ac1f066f43
commit c9603845d5
1 changed files with 7 additions and 0 deletions

View File

@ -2,8 +2,15 @@ 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
struct Opt {}
fn main() {
let _opt = Opt::from_args();
let main_author = get_main_author();
println!("{}", main_author);