From 977a4196f68fae09bb833e79c4f3baa191d76f98 Mon Sep 17 00:00:00 2001 From: Caviar-X Date: Sat, 11 Jun 2022 21:34:21 +0800 Subject: [PATCH] add INSTALL.md --- INSTALL.md | 7 +++++++ src/main.rs | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 INSTALL.md diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..a8457a7 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,7 @@ +run +```bash +cargo build --release +``` +in this directory and find the binary file in ./target/release + +Have fun! \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index a2a7af9..c811bb6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 } 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);