Compare commits
No commits in common. "main" and "f584119b7008dcbdeca6d762eaf34cd18a841ac9" have entirely different histories.
main
...
f584119b70
|
@ -1,7 +0,0 @@
|
||||||
run
|
|
||||||
```bash
|
|
||||||
cargo build --release
|
|
||||||
```
|
|
||||||
in this directory and find the binary file in ./target/release
|
|
||||||
|
|
||||||
Have fun!
|
|
|
@ -13,13 +13,9 @@ 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