added a create-project system to assembler, and fixed a couple of parsing bugs
This commit is contained in:
@@ -3,6 +3,12 @@ use std::{fs, io::Write, path::PathBuf};
|
||||
fn main() {
|
||||
// parse args:
|
||||
let args: Vec<String> = std::env::args().collect();
|
||||
|
||||
if args.len() == 2 && args[1] == "init" {
|
||||
assembler::tooling::project::tool_libcreate();
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
if args.len() != 5 || args[1] != "-i" || args[3] != "-o" {
|
||||
eprintln!("Usage: binary_name -i input_path -o output_path");
|
||||
std::process::exit(1);
|
||||
|
||||
Reference in New Issue
Block a user