diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2024-03-28 22:25:43 +1300 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2024-03-28 22:25:43 +1300 |
| commit | 4ef3b4a2997e11a7969ffb02e3cda6f3b9a3b651 (patch) | |
| tree | 9a149cff1236c978f094d47779792ec28b1bdd8b /src | |
| parent | 19d78ca2f8c5d37ba0c8bac76e30714a65c9f7b2 (diff) | |
Remove clap from project
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main.rs b/src/main.rs index 82e568e..8c74322 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,9 +8,7 @@ use std::process; pub mod args; - use rand::{thread_rng, seq::{SliceRandom, IteratorRandom}}; -use clap::Parser; use crate::args::Args; #[derive(Debug)] @@ -68,22 +66,6 @@ impl From<io::Error> for Error { type ProgResult<T> = Result<T, Error>; -#[derive(Parser, Debug)] -#[command(name = "spout")] -#[command(about = "Generates nonsense", long_about = None)] -struct OldArgs { - /// Path to data directory - directory: String, - - /// Number of sentences to generate - #[arg(short = 'n', long = "sentences", default_value_t = 1)] - n_sentences: u32, - - /// Don't re-use entries in data files (program will fail upon running out) - #[arg(long)] - unique: bool, -} - #[derive(Debug, Clone)] enum DropIn { Any, |
