mirror of
https://github.com/alacritty/alacritty.git
synced 2025-04-14 17:53:03 -04:00
Fix --help
output for --class
to match man pages
The output of --help did not match the man pages with regards to the ordering of arguments for the --class flag. This has now been fixed. Fixes #6413.
This commit is contained in:
parent
269b6e3dba
commit
c3b915b695
3 changed files with 7 additions and 3 deletions
|
@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
|
||||
## 0.12.0-dev
|
||||
|
||||
### Fixed
|
||||
|
||||
- `--help` output for `--class` does not match man pages
|
||||
|
||||
## 0.11.0
|
||||
|
||||
### Packaging
|
||||
|
|
|
@ -242,7 +242,7 @@ pub struct WindowIdentity {
|
|||
pub title: Option<String>,
|
||||
|
||||
/// Defines window class/app_id on X11/Wayland [default: Alacritty].
|
||||
#[clap(long, value_name = "instance> | <instance>,<general", parse(try_from_str = parse_class))]
|
||||
#[clap(long, value_name = "general> | <general>,<instance", parse(try_from_str = parse_class))]
|
||||
pub class: Option<Class>,
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ _alacritty() {
|
|||
'*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||
'-t+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
|
||||
'--title=[Defines the window title \[default: Alacritty\]]:TITLE: ' \
|
||||
'--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:instance> | <instance>,<general: ' \
|
||||
'--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:general> | <general>,<instance: ' \
|
||||
'-h[Print help information]' \
|
||||
'--help[Print help information]' \
|
||||
'-V[Print version information]' \
|
||||
|
@ -67,7 +67,7 @@ _arguments "${_arguments_options[@]}" \
|
|||
'*--command=[Command and args to execute (must be last argument)]:COMMAND: ' \
|
||||
'-t+[Defines the window title \[default: Alacritty\]]:TITLE: ' \
|
||||
'--title=[Defines the window title \[default: Alacritty\]]:TITLE: ' \
|
||||
'--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:instance> | <instance>,<general: ' \
|
||||
'--class=[Defines window class/app_id on X11/Wayland \[default: Alacritty\]]:general> | <general>,<instance: ' \
|
||||
'--hold[Remain open after child process exit]' \
|
||||
'-h[Print help information]' \
|
||||
'--help[Print help information]' \
|
||||
|
|
Loading…
Add table
Reference in a new issue