mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
added proposed table suffix to no_chars and no_position
This commit is contained in:
1 parent
1d04cdf119
commit
f15e049bf5
2 files changed
+7
-14
No files matched your search
+5
-12
@@ -111,12 +111,9 @@ fn run() -> Result<(), AnyhowError> {
|
||||
goes to an interactive terminal",
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("plain")
|
||||
.short("p")
|
||||
.long("plain")
|
||||
.help("Display output with --no-chars, --no-position, and --border=none."),
|
||||
)
|
||||
.arg(Arg::with_name("plain").short("p").long("plain").help(
|
||||
"Display output with --no-character-table, --no-position-table, --border=none, and --color=never.",
|
||||
))
|
||||
.arg(
|
||||
Arg::with_name("border")
|
||||
.long("border")
|
||||
@@ -133,15 +130,13 @@ fn run() -> Result<(), AnyhowError> {
|
||||
.arg(
|
||||
Arg::with_name("no_chars")
|
||||
.short("C")
|
||||
.long("no-chars")
|
||||
.conflicts_with("plain")
|
||||
.long("no-charcter-table")
|
||||
.help("Whether to display the character table on the right."),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("no_position")
|
||||
.short("P")
|
||||
.long("no-position")
|
||||
.conflicts_with("plain")
|
||||
.long("no-position-table")
|
||||
.help("Whether to display the position indicator on the left."),
|
||||
)
|
||||
.arg(
|
||||
@@ -259,8 +254,6 @@ fn run() -> Result<(), AnyhowError> {
|
||||
|
||||
let squeeze = !matches.is_present("nosqueezing");
|
||||
|
||||
// -nc true && false
|
||||
// -plain true && false
|
||||
let show_char_table = !matches.is_present("no_chars") && !matches.is_present("plain");
|
||||
|
||||
let show_position_indicator =
|
||||
|
||||
@@ -245,7 +245,7 @@ mod display_settings {
|
||||
fn no_chars() {
|
||||
hexyl()
|
||||
.arg("ascii")
|
||||
.arg("--no-chars")
|
||||
.arg("--no-charcter-table")
|
||||
.arg("--color=never")
|
||||
.assert()
|
||||
.success()
|
||||
@@ -260,7 +260,7 @@ mod display_settings {
|
||||
fn no_position() {
|
||||
hexyl()
|
||||
.arg("ascii")
|
||||
.arg("--no-position")
|
||||
.arg("--no-position-table")
|
||||
.arg("--color=never")
|
||||
.assert()
|
||||
.success()
|
||||
|
||||
Reference in new issue
Block a user