add misc as public parser module

This commit is contained in:
primardj 2024-04-05 23:33:31 +01:00
parent d1ebe941d4
commit f12f786f46

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;
} }