aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/cli.rs
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-12-10 19:54:06 -0500
committerGitHub <noreply@github.com>2022-12-11 00:54:06 +0000
commita152365c143e3b7c6221b4edb95d383e365ef65b (patch)
treecd9e077c5e420f5bdf0b7f16dd76b7f59f38d3a1 /alacritty/src/cli.rs
parent6566dd3defa9f080dabb295740dc1dac06e3b8fb (diff)
downloadr-alacritty-a152365c143e3b7c6221b4edb95d383e365ef65b.tar.gz
r-alacritty-a152365c143e3b7c6221b4edb95d383e365ef65b.tar.bz2
r-alacritty-a152365c143e3b7c6221b4edb95d383e365ef65b.zip
Add -T short form for --title
Debian-based distributions provide a standard interface to launch a terminal via the x-terminal-emulator name. In order for a terminal emualtor to satisfy that interface, it must * Be VT100 compatiable * Support the "-e <command> <args>" CLI option * Support the "-T <title>" CLI option Adjust the short form of --title accordingly, providing -t as an alias to avoid breaking any existing usage.
Diffstat (limited to 'alacritty/src/cli.rs')
-rw-r--r--alacritty/src/cli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs
index d03d2f84..38707036 100644
--- a/alacritty/src/cli.rs
+++ b/alacritty/src/cli.rs
@@ -238,7 +238,7 @@ impl From<TerminalOptions> for PtyConfig {
#[derive(Serialize, Deserialize, Args, Default, Debug, Clone, PartialEq, Eq)]
pub struct WindowIdentity {
/// Defines the window title [default: Alacritty].
- #[clap(short, long)]
+ #[clap(short = 'T', short_alias('t'), long)]
pub title: Option<String>,
/// Defines window class/app_id on X11/Wayland [default: Alacritty].