1use clap::*; 2 3// 4// Version 5// 6 7/// Clap command to print version. 8#[derive(Args, Clone, Debug)] 9pub struct Version; 10 11impl Version { 12 /// Run command. 13 pub fn run<ParserT>(&self) 14 where 15 ParserT: Parser, 16 { 17 print!("{}", ParserT::command().render_version()); 18 } 19}