add verbose
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -48,6 +48,17 @@ const GIT_HASH: &str = env!("GIT_HASH");
|
|||||||
fn main() -> XResult<()> {
|
fn main() -> XResult<()> {
|
||||||
let options = Options::new_and_parse_args()?;
|
let options = Options::new_and_parse_args()?;
|
||||||
|
|
||||||
|
if options.verbose {
|
||||||
|
print_message(MessageType::DEBUG, &format!("Algorithm: {}", options.algorithm));
|
||||||
|
print_message(MessageType::DEBUG, &format!("Blake len: {}", options.blake_len));
|
||||||
|
if !options.file_name_list.is_empty() {
|
||||||
|
print_message(MessageType::DEBUG, "File names:");
|
||||||
|
for f in &options.file_name_list {
|
||||||
|
print_message(MessageType::DEBUG, &format!("- {}", f.as_str()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if options.version {
|
if options.version {
|
||||||
print_version(&options);
|
print_version(&options);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|||||||
Reference in New Issue
Block a user