diff --git a/src/parser.rs b/src/parser.rs index 02e0d747..0a3b13b3 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -15,7 +15,6 @@ lazy_static! { fn parse_opts(text: &str) -> Result { let mut multi = false; let mut prevent_extra = false; - let mut is_global = false; let mut opts = FinderOpts::default(); let parts = shellwords::split(text).map_err(|_| anyhow!("Given options are missing a closing quote"))?; @@ -33,10 +32,6 @@ fn parse_opts(text: &str) -> Result { prevent_extra = true; false } - "--global" => { - is_global = true; - false - } _ => true, } }) @@ -82,7 +77,6 @@ fn parse_opts(text: &str) -> Result { (false, true) => SuggestionType::SingleSelection, }; opts.suggestion_type = suggestion_type; - opts.global = is_global; Ok(opts) } diff --git a/src/structures/finder.rs b/src/structures/finder.rs index 717fed8a..24bddfbd 100644 --- a/src/structures/finder.rs +++ b/src/structures/finder.rs @@ -6,7 +6,6 @@ pub struct Opts { pub preview: Option, pub preview_window: Option, pub overrides: Option, - pub global: bool, pub header_lines: u8, pub header: Option, pub suggestion_type: SuggestionType, @@ -22,7 +21,6 @@ impl Default for Opts { filter: None, preview: None, preview_window: None, - global: false, overrides: None, header_lines: 0, header: None,