From b384dc999fe84b5fa62894465cfe2fef5220c06c Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 22 Mar 2023 07:24:02 -0700 Subject: [PATCH] fix delegation of --skip-config to wezterm-gui refs: #3325 --- docs/changelog.md | 3 +++ wezterm-gui/src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index b2a582879..cf8930e22 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -25,9 +25,12 @@ As features stabilize some brief notes about them will accumulate here. * [mouse_wheel_scrolls_tabs](config/lua/config/mouse_wheel_scrolls_tabs.md) option to control whether the mouse wheel can be used to activate tabs when hovering over the tab bar. Thanks to @eaglgenes101! #3227 + #### Fixed * ssh ProxyCommand didn't parse command lines containing `=` correctly. #3307 * `wezterm.GLOBALS.foo` now supports `__len` and `__pairs` metamethods +* `wezterm --skip-config` resulted in an `unexpected argument` error, while + `wezterm -n` still worked as intended. #3325 ### 20230320-124340-559cb7b0 diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rs index 0bbdcb79b..3515dc978 100644 --- a/wezterm-gui/src/main.rs +++ b/wezterm-gui/src/main.rs @@ -70,7 +70,7 @@ pub use termwindow::{set_window_class, set_window_position, TermWindow, ICON_DAT )] struct Opt { /// Skip loading wezterm.lua - #[arg(name = "skip-config", short = 'n')] + #[arg(long, short = 'n')] skip_config: bool, /// Specify the configuration file to use, overrides the normal @@ -78,7 +78,7 @@ struct Opt { #[arg( long = "config-file", value_parser, - conflicts_with = "skip-config", + conflicts_with = "skip_config", value_hint=ValueHint::FilePath, )] config_file: Option,