mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 08:13:52 +01:00
feat: command not found hook
This commit is contained in:
parent
f80fbaa8d3
commit
e7f3eca47f
4 changed files with 59 additions and 11 deletions
|
|
@ -7,6 +7,7 @@ pub fn handle_args() {
|
|||
}
|
||||
let mut auto_aliasing = String::new();
|
||||
let mut shell = String::new();
|
||||
let mut cnf = true;
|
||||
let mut index = 1;
|
||||
while index < args.len() {
|
||||
match args[index].as_str() {
|
||||
|
|
@ -29,6 +30,10 @@ pub fn handle_args() {
|
|||
}
|
||||
index += 1;
|
||||
}
|
||||
"--noncf" => {
|
||||
cnf = false;
|
||||
index += 1
|
||||
}
|
||||
_ => {
|
||||
shell = args[index].clone();
|
||||
index += 1
|
||||
|
|
@ -43,7 +48,7 @@ pub fn handle_args() {
|
|||
|
||||
let binary_path = &args[0];
|
||||
|
||||
initialization(&shell, binary_path, &auto_aliasing);
|
||||
initialization(&shell, binary_path, &auto_aliasing, cnf);
|
||||
}
|
||||
|
||||
fn print_help() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue