From c8781ae442f796da0a25152f617efb502d376c68 Mon Sep 17 00:00:00 2001 From: Dark-Alex-17 Date: Tue, 8 Aug 2023 10:50:07 -0600 Subject: [PATCH] Removed unnecessary use of clap since I'm making a TUI and not a CLI application --- Cargo.toml | 1 - src/main.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 724f915..89143f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ anyhow = "1.0.68" backtrace = "0.3.67" bimap = "0.6.3" chrono = { version = "0.4", features = ["serde"] } -clap = { version = "4.0.30", features = ["help", "usage", "error-context", "derive"] } confy = { version = "0.5.1", default_features = false, features = ["yaml_conf"] } crossterm = "0.26.1" derivative = "2.2.0" diff --git a/src/main.rs b/src/main.rs index 79deb1e..c6bf5cb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,6 @@ use std::sync::Arc; use std::{io, panic}; use anyhow::Result; -use clap::Parser; use crossterm::execute; use crossterm::terminal::{ disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen, @@ -31,17 +30,12 @@ mod network; mod ui; mod utils; -#[derive(Parser)] -#[command(author, version, about, long_about = None)] -struct Cli {} - #[tokio::main] async fn main() -> Result<()> { log4rs::init_config(utils::init_logging_config())?; panic::set_hook(Box::new(|info| { panic_hook(info); })); - Cli::parse(); let config = confy::load("managarr", "config")?; let (sync_network_tx, sync_network_rx) = mpsc::channel(500);