Rename CommonArgs -> AppExt
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 10 Mar 2018 13:23:30 +0000 (16:23 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sat, 10 Mar 2018 13:23:30 +0000 (16:23 +0300)
src/bin/command_prelude.rs

index 5d10c76be45d80f5da6ba0751842293b0c1cf5a8..cc48bd3739672b1ac5e4e430f4d06c93cf9fb02c 100644 (file)
@@ -11,7 +11,7 @@ pub use clap::Arg;
 
 pub type App = clap::App<'static, 'static>;
 
-pub trait CommonArgs: Sized {
+pub trait AppExt: Sized {
     fn _arg(self, arg: Arg<'static, 'static>) -> Self;
 
     fn arg_package(self, package: &'static str, all: &'static str, exclude: &'static str) -> Self {
@@ -150,7 +150,7 @@ a global configuration.")
     }
 }
 
-impl CommonArgs for App {
+impl AppExt for App {
     fn _arg(self, arg: Arg<'static, 'static>) -> Self {
         self.arg(arg)
     }