From 17ffbcde07dac86170061c3077c90f92efeb6792 Mon Sep 17 00:00:00 2001 From: schlanqe <71264811+schlanqe@users.noreply.github.com> Date: Mon, 22 Jan 2024 03:46:39 +0300 Subject: [PATCH] [Fix] Rename JSPerfLspConfig to HtmxLspConfig (#41) - JSPerfLspConfig -> HtmxLspConfig - no need for clap name --- src/main.rs | 4 ++-- src/opts.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index cd06885..bf6bcf3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,12 +7,12 @@ use clap::Parser; use log::trace; use structured_logger::{json::new_writer, Builder}; -use opts::JSPerfLspConfig; +use opts::HtmxLspConfig; use htmx_lsp_server::start_lsp; fn main() -> Result<()> { - let config = JSPerfLspConfig::parse(); + let config = HtmxLspConfig::parse(); let mut builder = Builder::with_level(&config.level); diff --git a/src/opts.rs b/src/opts.rs index 03a38ae..9644f9e 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -1,8 +1,8 @@ use clap::Parser; #[derive(Parser, Debug)] -#[clap(name = "waxwing-lsp")] -pub struct JSPerfLspConfig { +#[clap()] +pub struct HtmxLspConfig { /// The file to pipe logs out to #[clap(short, long)] pub file: Option,