"feat(arg_parser): Add interactive mode and help message"
This commit is contained in:
parent
57ed1ca513
commit
6ae7ce6a57
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user