projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66bb9dc
)
Rename CommonArgs -> AppExt
author
Aleksey Kladov
<aleksey.kladov@gmail.com>
Sat, 10 Mar 2018 13:23:30 +0000
(16:23 +0300)
committer
Aleksey Kladov
<aleksey.kladov@gmail.com>
Sat, 10 Mar 2018 13:23:30 +0000
(16:23 +0300)
src/bin/command_prelude.rs
patch
|
blob
|
history
diff --git
a/src/bin/command_prelude.rs
b/src/bin/command_prelude.rs
index 5d10c76be45d80f5da6ba0751842293b0c1cf5a8..cc48bd3739672b1ac5e4e430f4d06c93cf9fb02c 100644
(file)
--- a/
src/bin/command_prelude.rs
+++ b/
src/bin/command_prelude.rs
@@
-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)
}