style: format

This commit is contained in:
2021-01-01 22:34:57 +08:00
parent ba35489cdf
commit de0184e253
8 changed files with 20 additions and 2 deletions

View File

@@ -3,9 +3,11 @@ use crate::cmd::CommandError;
pub struct CommandImpl;
impl CommandImpl {
pub fn process_command<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app.arg(Arg::with_name("verbose").long("verbose").short("v").multiple(true).help("Show verbose info"))
}
pub fn run(arg_matches: &ArgMatches) -> CommandError {
let verbose_count = arg_matches.occurrences_of("verbose");
information!("Verbose count: {}", verbose_count);