flags #5

Merged
statzitz merged 5 commits from flags into main 2024-04-06 00:47:55 +02:00
Showing only changes of commit f12f786f46 - Show all commits

View file

@ -1,6 +1,6 @@
mod misc; pub mod misc;
use std::process::exit; use std::process::exit;
@ -18,6 +18,7 @@ pub fn parse_args(args: Vec<String>) -> Vec<String>{
tmpstr = parse_args_1(arg); tmpstr = parse_args_1(arg);
if tmpstr == "--" { if tmpstr == "--" {
parser.push("--".to_string());
i += 1; i += 1;
} }
if tmpstr == "-w" { if tmpstr == "-w" {
@ -30,6 +31,7 @@ pub fn parse_args(args: Vec<String>) -> Vec<String>{
} }
else if tmpstr == "" { else if tmpstr == "" {
// We are actually in phase II. Do exactly the same if it was phase II. // We are actually in phase II. Do exactly the same if it was phase II.
parser.push("--".to_string());
parser.push(phase2(arg)); parser.push(phase2(arg));
i = 3; i = 3;
} }