diff --git a/src/args.rs b/src/args.rs index aefa0e4..faefd6d 100644 --- a/src/args.rs +++ b/src/args.rs @@ -23,7 +23,7 @@ use crate::transport::{endpoint::EndPoint, TransportOptions}; // value of the environment variable for flags if any const ENV_FLAGS: &str = "DQY_FLAGS"; -const VERSION: &str = "0.4.0"; +const VERSION: &str = "v0.4.0"; // help to set or unset flags macro_rules! set_unset_flag { @@ -554,6 +554,7 @@ Caveat: all options starting with a dash (-) should be placed after optional [TY .arg( Arg::new("tpl") .long("tpl") + .hide(true) .long_help("Name of the handlebars template to render to display results.") .action(ArgAction::Set) .value_name("TEMPLATE") diff --git a/src/dns/rfc/resource_record.rs b/src/dns/rfc/resource_record.rs index 7fd6190..54f45cb 100644 --- a/src/dns/rfc/resource_record.rs +++ b/src/dns/rfc/resource_record.rs @@ -261,7 +261,7 @@ impl ResourceRecord { // convert domain name back to UTF-8 if self.name.is_puny() { let unicode = self.name.to_unicode().unwrap(); - print!("{}\t\t\t", unicode.bright_green()); + print!("{:, options: &CliOptions) -> error rt.block_on(async { let messages = DnsProtocol::quic_process_request(options, BUFFER_SIZE).await?; - // transport.handle.0.finish().await.unwrap(); - - // we want run info - // if let Some(info) = info { - // info.netinfo = *transport.network_info(); - // } - Ok(messages) }) } @@ -183,7 +184,7 @@ fn run() -> error::Result<()> { // print out final results //─────────────────────────────────────────────────────────────────────────────────── if let Some(tpl) = &options.display.hb_tpl { - handlebars::render(&messages, &info, &tpl); + handlebars::render(&messages, &info, tpl); } else { messages.show_all(&options.display, info); }