add misc as public parser module
This commit is contained in:
parent
d1ebe941d4
commit
f12f786f46
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
mod misc;
|
||||
pub mod misc;
|
||||
|
||||
use std::process::exit;
|
||||
|
||||
|
@ -18,6 +18,7 @@ pub fn parse_args(args: Vec<String>) -> Vec<String>{
|
|||
tmpstr = parse_args_1(arg);
|
||||
|
||||
if tmpstr == "--" {
|
||||
parser.push("--".to_string());
|
||||
i += 1;
|
||||
}
|
||||
if tmpstr == "-w" {
|
||||
|
@ -30,6 +31,7 @@ pub fn parse_args(args: Vec<String>) -> Vec<String>{
|
|||
}
|
||||
else if tmpstr == "" {
|
||||
// We are actually in phase II. Do exactly the same if it was phase II.
|
||||
parser.push("--".to_string());
|
||||
parser.push(phase2(arg));
|
||||
i = 3;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue