"feat(arg_parser): Add interactive mode and help message"

This commit is contained in:
Triston Armstrong 2025-01-12 13:00:18 -05:00
parent 57ed1ca513
commit 6ae7ce6a57
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE

View File

@ -13,6 +13,7 @@ impl ArgParser {
let arg = args().nth(1); let arg = args().nth(1);
if arg.is_none() { if arg.is_none() {
// <-- interactive mode will go here // <-- interactive mode will go here
println!("...(future) interactive mode not implimented... exiting");
return None; return None;
} }
let arg = arg.unwrap(); let arg = arg.unwrap();
@ -20,13 +21,10 @@ impl ArgParser {
"-c" => Some(ParsedArg::Commit), "-c" => Some(ParsedArg::Commit),
"-p" => Some(ParsedArg::PullRequest), "-p" => Some(ParsedArg::PullRequest),
"-h" => { "-h" => {
println!("help stuff here");
None
}
_ => {
println!("Available Commands: -c [commit] -p [pull request] -h [help]"); println!("Available Commands: -c [commit] -p [pull request] -h [help]");
None None
} }
_ => None,
} }
} }
} }