add INSTALL.md

This commit is contained in:
64 bit machine 2022-06-11 21:34:21 +08:00
parent f584119b70
commit 977a4196f6
2 changed files with 11 additions and 0 deletions

7
INSTALL.md Normal file
View File

@ -0,0 +1,7 @@
run
```bash
cargo build --release
```
in this directory and find the binary file in ./target/release
Have fun!

View File

@ -13,9 +13,13 @@ pub struct Args {
/// The name of the file
#[clap(short, long)]
pub file: String,
/// The name of the standard slultion file (executable only)
#[clap(short, long)]
pub std: Option<String>
}
fn main() {
let params: Args = Args::parse();
println!("{}","Generating in file...".color(Color::Blue));
for i in 1..=params.count {
let mut data: File = File::create(format!("{}.in", i)).expect("Failed to create file");
let mut parser: Parser = Parser::new(params.clone().file);