From 7e9c25fd63b169ef50a6b54e73b16b035f2fdd8d Mon Sep 17 00:00:00 2001 From: Mario Krehl Date: Sat, 14 Apr 2018 11:54:56 +0200 Subject: Refactor: use App in the build_ui function of imag-init --- bin/core/imag-init/src/ui.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/core/imag-init/src/ui.rs') diff --git a/bin/core/imag-init/src/ui.rs b/bin/core/imag-init/src/ui.rs index ff985290..7936cc9b 100644 --- a/bin/core/imag-init/src/ui.rs +++ b/bin/core/imag-init/src/ui.rs @@ -19,12 +19,8 @@ use clap::{Arg, App}; -pub fn build_ui<'a>(version: &'a str) -> App<'a, 'a> { - App::new("imag-init") - .version(version) - .author("Matthias Beyer ") - .about("Initialize a ~/.imag repository. Optionally with git") - +pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { + app .arg(Arg::with_name("devel") .long("dev") .takes_value(false) -- cgit v1.2.3