Respecify view-in-editor argument

As we use the `--editor` flag in the Runtime, we should not override it
here.

By passing `--editor foo` one can override the editor application-wide,
the argument is now `--in-editor` therefor.
This commit is contained in:
Matthias Beyer 2016-09-21 17:19:37 +02:00
parent 2b2116fb95
commit 352bccde51

View file

@ -50,12 +50,11 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.value_name("BROWSER")) .value_name("BROWSER"))
.arg(Arg::with_name("view-in-texteditor") .arg(Arg::with_name("view-in-texteditor")
.long("editor") .long("in-editor")
.short("e") .short("e")
.takes_value(true) // optional, which editor .takes_value(false)
.required(false) .required(false)
.help("View content in $EDITOR") .help("View content in $EDITOR (can be passed via --editor)"))
.value_name("EDITOR"))
.arg(Arg::with_name("view-in-custom") .arg(Arg::with_name("view-in-custom")
.long("custom") .long("custom")