summaryrefslogtreecommitdiffstats
path: root/imag-view
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-07-16 22:52:41 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-07-17 01:27:09 +0200
commit228f55bfd60f60848c9e293cee84f8bd843bbaa9 (patch)
treef39ac5971789ca5df0b9a5399dd798e8ab5d1b84 /imag-view
parentccb686cea4bcf569f7c83b4a89f0ad56ed77a738 (diff)
ui: Remove copy support
Diffstat (limited to 'imag-view')
-rw-r--r--imag-view/src/main.rs2
-rw-r--r--imag-view/src/ui.rs13
2 files changed, 0 insertions, 15 deletions
diff --git a/imag-view/src/main.rs b/imag-view/src/main.rs
index c8550bbe..9d664254 100644
--- a/imag-view/src/main.rs
+++ b/imag-view/src/main.rs
@@ -66,8 +66,6 @@ fn main() {
let entry_version = rt.cli().value_of("version");
let view_header = rt.cli().is_present("view-header");
let view_content = rt.cli().is_present("view-content");
- let view_copy = rt.cli().is_present("view-copy");
- let keep_copy = rt.cli().is_present("keep-copy");
let scmd = rt.cli().subcommand_matches("view-in");
if scmd.is_none() {
diff --git a/imag-view/src/ui.rs b/imag-view/src/ui.rs
index 45c05ed1..ae9180b0 100644
--- a/imag-view/src/ui.rs
+++ b/imag-view/src/ui.rs
@@ -37,19 +37,6 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.required(false)
.help("View content"))
- .arg(Arg::with_name("view-copy")
- .long("copy")
- .takes_value(false)
- .required(false)
- .help("Copy before opening (copies to /tmp/) and removes the file after viewing."))
-
- .arg(Arg::with_name("keep-copy")
- .long("keep-copy")
- .short("k")
- .takes_value(false)
- .required(false)
- .help("If --copy was passed, keep the copy after viewing."))
-
.subcommand(SubCommand::with_name("view-in")
.about("View the entry in ...")
.version("0.1")