diff options
author | Thomas Otto <th1000s@posteo.net> | 2021-10-13 23:58:09 +0200 |
---|---|---|
committer | Thomas Otto <th1000s@posteo.net> | 2021-10-16 14:07:30 +0200 |
commit | f467f4cdd082ae5b2e032f1f573f488c03de6f5c (patch) | |
tree | d9af79b845dc04e3ff576a51377a81abacce397b /src/cli.rs | |
parent | 636b56729be21a17a5520988f0d23f5d26e9a277 (diff) |
StructOpt without Default
This does not use the values provided by default_value, so
validation will fail.
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -13,7 +13,8 @@ use crate::bat_utils::output::PagingMode; use crate::git_config::{GitConfig, GitConfigEntry}; use crate::options; -#[derive(StructOpt, Default)] +// No Default trait as this ignores `default_value = ..` +#[derive(StructOpt)] #[structopt( name = "delta", about = "A viewer for git and diff output", |