1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

style: naming

This commit is contained in:
2021-01-03 12:24:45 +08:00
parent da71d5c0c2
commit a8ae90ab4d

View File

@@ -8,7 +8,7 @@ pub type CommandError = XResult<Option<i32>>;
pub trait Command {
fn name(&self) -> &str;
fn subcommand<'a>(&self) -> App<'a, 'a>;
fn run(&self, arg_matches: &ArgMatches, _: &ArgMatches) -> CommandError;
fn run(&self, arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError;
}
pub trait DefaultCommand {