diff --git a/src/main.rs b/src/main.rs index 514f3ce..10401d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,13 +10,6 @@ fn main() { .version("0.1") .author("Daan Boerlage ") .about("When fortune is run with no arguments it prints out a random epigram. Epigrams are divided into several categories.") - .arg(Arg::with_name("file") - .short("F") - .long("file") - .default_value("fortunes") - .help("The fortune file") - .takes_value(true) - .value_name("file")) .arg(Arg::with_name("length") .short("n") .long("length") diff --git a/src/utils/options_parser.rs b/src/utils/options_parser.rs index 8011703..8ed3653 100644 --- a/src/utils/options_parser.rs +++ b/src/utils/options_parser.rs @@ -3,7 +3,6 @@ use clap::App; pub fn parse(app: App) -> Parameters { let matches = app.get_matches(); let options: Parameters = Parameters { - filename: matches.value_of("file").unwrap().to_owned(), length: matches .value_of("length") .unwrap() @@ -24,8 +23,6 @@ pub fn parse(app: App) -> Parameters { } pub struct Parameters { - pub filename: String, - pub length: usize, pub long_fortunes: bool, pub short_fortunes: bool,