diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-01 16:36:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 16:36:15 +0000 |
commit | 12f952df42941be8a94a90f9a029e041c9281142 (patch) | |
tree | aeb1589a4acf5cb20264c05dab572cce578b0ace | |
parent | 12afbd007db8a8995617b3e7ebda3840860bbadc (diff) | |
download | alacritty-12f952df42941be8a94a90f9a029e041c9281142.tar.gz alacritty-12f952df42941be8a94a90f9a029e041c9281142.zip |
Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.
This also adds the default values of `--class` and `--title` to the CLI
options.
-rw-r--r-- | alacritty.man | 3 | ||||
-rw-r--r-- | src/cli.rs | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/alacritty.man b/alacritty.man index 31e2934e..31ea2ba9 100644 --- a/alacritty.man +++ b/alacritty.man @@ -36,6 +36,9 @@ Increases the level of verbosity (the max level is \fB\-vvv\fR) Prints version information .SH "OPTIONS" .TP +\fB\-\-class\fR <class> +Defines the window class on X11 [default: Alacritty] +.TP \fB\-e\fR, \fB\-\-command\fR <command>... Command and args to execute (must be last argument) .HP @@ -15,6 +15,7 @@ extern crate log; use clap::{Arg, App}; use index::{Line, Column}; use config::{Dimensions, Shell}; +use window::{DEFAULT_TITLE, DEFAULT_CLASS}; use std::path::{Path, PathBuf}; use std::borrow::Cow; @@ -80,11 +81,11 @@ impl Options { .long("title") .short("t") .takes_value(true) - .help("Defines the window title")) + .help(&format!("Defines the window title [default: {}]", DEFAULT_TITLE))) .arg(Arg::with_name("class") .long("class") .takes_value(true) - .help("Defines window class on X11")) + .help(&format!("Defines window class on X11 [default: {}]", DEFAULT_CLASS))) .arg(Arg::with_name("q") .short("q") .multiple(true) |