fix: argument index

This commit is contained in:
iff 2024-09-26 02:34:37 +02:00
parent 7aa1aeafff
commit ff3ceea00e

View file

@ -7,7 +7,7 @@ pub fn handle_args() {
} }
let mut auto_aliasing = String::new(); let mut auto_aliasing = String::new();
let mut shell = String::new(); let mut shell = String::new();
let mut index = 0; let mut index = 1;
while index < args.len() { while index < args.len() {
match args[index].as_str() { match args[index].as_str() {
"-h" | "--help" => { "-h" | "--help" => {