make version non option, fixes #22
This commit is contained in:
parent
c245785881
commit
79e8ac0a36
1 changed files with 3 additions and 2 deletions
|
@ -186,7 +186,8 @@ pub struct Config {
|
|||
|
||||
/// Prints the version and then exits
|
||||
#[clap(short = 'v', long = "version")]
|
||||
version: Option<bool>,
|
||||
#[serde(default = "default_false")]
|
||||
version: bool,
|
||||
|
||||
/// Defines the style sheet to be loaded.
|
||||
/// Defaults to `$XDG_CONF_DIR/worf/style.css`
|
||||
|
@ -576,7 +577,7 @@ impl Config {
|
|||
|
||||
#[must_use]
|
||||
pub fn version(&self) -> bool {
|
||||
self.version.unwrap_or(false)
|
||||
self.version
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue