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:
parent
ac1f066f43
commit
c9603845d5
|
|
@ -2,8 +2,15 @@ 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)]
|
||||||
|
#[structopt(name="git-solo")]
|
||||||
|
/// Disband the mob and continue working solo
|
||||||
|
struct Opt {}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
let _opt = Opt::from_args();
|
||||||
let main_author = get_main_author();
|
let main_author = get_main_author();
|
||||||
println!("{}", main_author);
|
println!("{}", main_author);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue