diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 520f0a0..4c2c734 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use rand::{thread_rng, Rng}; #[derive(Parser)] struct Args { #[arg(short, long)] - quote_folder: String, + quote: String, } fn generate_quotes(path: &Path) -> Result<Vec<String>, Box<dyn Error>> { @@ -35,7 +35,7 @@ fn generate_quotes(path: &Path) -> Result<Vec<String>, Box<dyn Error>> { #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { let args = Args::parse(); - let path = Path::new(&args.quote_folder); + let path = Path::new(&args.quote); let mut quotes = generate_quotes(&path).unwrap(); let mut rng = thread_rng(); let chosen = rng.gen_range(0..quotes.len()); |
