ui: Remove copy support

This commit is contained in:
Matthias Beyer 2016-07-16 22:52:41 +02:00
parent ccb686cea4
commit 228f55bfd6
2 changed files with 0 additions and 15 deletions

View File

@ -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() {

View File

@ -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")