Skip to content

Commit

Permalink
Rename human format to friendly and make it default.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Jun 20, 2024
1 parent a6886c4 commit 4ff63e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
File renamed without changes.
10 changes: 6 additions & 4 deletions src/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mod ansi;
mod dig;
mod error;
mod human;
mod friendly;
mod table;
mod table_writer;
mod ttl;
Expand All @@ -19,15 +19,17 @@ use std::io;
pub enum OutputFormat {
/// Similar to dig.
Dig,

/// Easily readable, formatted with ANSI codes and whitespace
Human,
Friendly,

/// Short readable format
Table,
}

#[derive(Clone, Debug, Parser)]
pub struct OutputOptions {
#[arg(long = "format", default_value = "dig")]
#[arg(long = "format", default_value = "friendly")]
pub format: OutputFormat,
}

Expand All @@ -39,7 +41,7 @@ impl OutputFormat {
) -> Result<(), io::Error> {
let res = match self {
Self::Dig => self::dig::write(msg, target),
Self::Human => self::human::write(msg, target),
Self::Friendly => self::friendly::write(msg, target),
Self::Table => self::table::write(msg, target),
};
match res {
Expand Down

0 comments on commit 4ff63e4

Please sign in to comment.