add INSTALL.md
This commit is contained in:
parent
f584119b70
commit
977a4196f6
|
@ -0,0 +1,7 @@
|
||||||
|
run
|
||||||
|
```bash
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
in this directory and find the binary file in ./target/release
|
||||||
|
|
||||||
|
Have fun!
|
|
@ -13,9 +13,13 @@ pub struct Args {
|
||||||
/// The name of the file
|
/// The name of the file
|
||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
pub file: String,
|
pub file: String,
|
||||||
|
/// The name of the standard slultion file (executable only)
|
||||||
|
#[clap(short, long)]
|
||||||
|
pub std: Option<String>
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
let params: Args = Args::parse();
|
let params: Args = Args::parse();
|
||||||
|
println!("{}","Generating in file...".color(Color::Blue));
|
||||||
for i in 1..=params.count {
|
for i in 1..=params.count {
|
||||||
let mut data: File = File::create(format!("{}.in", i)).expect("Failed to create file");
|
let mut data: File = File::create(format!("{}.in", i)).expect("Failed to create file");
|
||||||
let mut parser: Parser = Parser::new(params.clone().file);
|
let mut parser: Parser = Parser::new(params.clone().file);
|
||||||
|
|
Loading…
Reference in New Issue