diff --git a/src/cmd_line.rs b/src/cmd_line.rs index f1a81ab..bf37fe0 100644 --- a/src/cmd_line.rs +++ b/src/cmd_line.rs @@ -9,7 +9,6 @@ pub struct CmdLineSettings { pub neovim_args: Vec, // Command-line arguments only pub geometry: Dimensions, - pub verbosity: u64, pub log_to_file: bool, pub no_fork: bool, pub remote_tcp: Option, @@ -33,7 +32,6 @@ impl Default for CmdLineSettings { neovim_args: vec![], // Command-line arguments only geometry: DEFAULT_WINDOW_GEOMETRY, - verbosity: 0, log_to_file: false, no_fork: false, remote_tcp: None, @@ -72,12 +70,6 @@ pub fn handle_command_line_arguments(args: Vec) -> Result<(), String> { .help("Specify Arguments to pass down to neovim"), ) // Command-line arguments only - .arg( - Arg::with_name("verbosity") - .short("v") - .multiple(true) - .help("Increase verbosity level (repeatable up to 4 times; implies --nofork)"), - ) .arg( Arg::with_name("geometry") .long("geometry") @@ -170,10 +162,9 @@ pub fn handle_command_line_arguments(args: Vec) -> Result<(), String> { // Pass through arguments neovim_args, // Command-line arguments only - verbosity: matches.occurrences_of("verbosity"), geometry: parse_window_geometry(matches.value_of("geometry").map(|i| i.to_owned()))?, log_to_file: matches.is_present("log_to_file"), - no_fork: matches.is_present("nofork") || matches.is_present("verbosity"), + no_fork: matches.is_present("nofork"), remote_tcp: matches.value_of("remote_tcp").map(|i| i.to_owned()), wsl: matches.is_present("wsl"), // Command-line flags with environment variable fallback diff --git a/src/main.rs b/src/main.rs index a25e348..3c91474 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,12 +180,6 @@ fn main() { #[cfg(not(test))] pub fn init_logger() { let settings = SETTINGS.get::(); - let verbosity = match settings.verbosity { - 0 => "warn", - 1 => "info", - 2 => "debug", - _ => "trace", - }; let logger = if settings.log_to_file { Logger::with_env_or_str("neovide")