From 4ef3b4a2997e11a7969ffb02e3cda6f3b9a3b651 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Thu, 28 Mar 2024 22:25:43 +1300 Subject: Remove clap from project --- src/main.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/main.rs') 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 for Error { type ProgResult = Result; -#[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, -- cgit v1.2.1