summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index c22ebe24..b06743aa 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,3 +1,4 @@
+use std::path::PathBuf;
use std::process;
use structopt::clap::AppSettings::{ColorAlways, ColoredHelp, DeriveDisplayOrder};
@@ -287,6 +288,14 @@ pub struct Opt {
#[structopt(long = "paging", default_value = "auto")]
pub paging_mode: String,
+ /// First file to be compared when delta is being used in diff mode.
+ #[structopt(parse(from_os_str))]
+ pub minus_file: Option<PathBuf>,
+
+ /// Second file to be compared when delta is being used in diff mode.
+ #[structopt(parse(from_os_str))]
+ pub plus_file: Option<PathBuf>,
+
#[structopt(long = "minus-color")]
/// Deprecated: use --minus-style='normal my_background_color'.
pub deprecated_minus_background_color: Option<String>,