summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-27 16:21:48 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-27 16:37:03 -0400
commitc7bb973e0ff0103b6197585c60563b596e5faf0a (patch)
tree8eaedaf320b9a3876c44b17f665901e01f92db7f /src/config.rs
parent026c3dd99fff44e041a3f1e98e141fff0cd42f41 (diff)
Rename --list-*, --show-* commands
--list-syntax-themes => --show-syntax-themes --list-syntax-theme-names => --list-syntax-themes --show-styles => --show-config Fixes #207 Fixes #226
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/config.rs b/src/config.rs
index 672a9507..03e0d68e 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -34,9 +34,6 @@ pub struct Config {
pub file_style: Style,
pub keep_plus_minus_markers: bool,
pub hunk_header_style: Style,
- pub list_languages: bool,
- pub list_syntax_theme_names: bool,
- pub list_syntax_themes: bool,
pub max_buffered_lines: usize,
pub max_line_distance: f64,
pub max_line_distance_for_naively_paired_lines: f64,
@@ -61,7 +58,6 @@ pub struct Config {
pub plus_file: Option<PathBuf>,
pub plus_non_emph_style: Style,
pub plus_style: Style,
- pub show_styles: bool,
pub line_numbers: bool,
pub syntax_dummy_theme: SyntaxTheme,
pub syntax_set: SyntaxSet,
@@ -198,9 +194,6 @@ impl From<cli::Opt> for Config {
file_style,
keep_plus_minus_markers: opt.keep_plus_minus_markers,
hunk_header_style,
- list_languages: opt.list_languages,
- list_syntax_theme_names: opt.list_syntax_theme_names,
- list_syntax_themes: opt.list_syntax_themes,
max_buffered_lines: 32,
max_line_distance: opt.max_line_distance,
max_line_distance_for_naively_paired_lines,
@@ -225,7 +218,6 @@ impl From<cli::Opt> for Config {
plus_file: opt.plus_file.map(|s| s.clone()),
plus_non_emph_style,
plus_style,
- show_styles: opt.show_styles,
line_numbers: opt.line_numbers,
syntax_dummy_theme,
syntax_set: assets.syntax_set,