Skip to content

Commit

Permalink
Remove --missing-as-empty from argument parsing and man page
Browse files Browse the repository at this point in the history
Fixes #802
  • Loading branch information
Wilfred committed Jan 11, 2025
1 parent 09355c6 commit ba843a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 0.63 (unreleased)

### Command Line Interface

Difftastic no longer accepts the `--missing-as-empty`. This has had no
effect since 0.46.

### Parsing

File detection now supports Windows-1252 encoded test (an extension of
Expand Down
4 changes: 0 additions & 4 deletions difft.1
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ Don\[cq]t consider comments when diffing.
Print the all the languages supported by difftastic, along with their
extensions.
.TP
\f[B]\-\-missing\-as\-empty\f[R]
Treat paths that don\[cq]t exist as equivalent to an empty file.
Only applies when diffing files, not directories.
.TP
\f[B]\-\-override\f[R] \f[I]GLOB:NAME\f[R]
Associate this glob pattern with this language, overriding normal
language detection.
Expand Down
5 changes: 0 additions & 5 deletions difft.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ OPTIONS

: Print the all the languages supported by difftastic, along with their extensions.

**\-\-missing-as-empty**

: Treat paths that don't exist as equivalent to an empty file. Only applies when diffing
files, not directories.

**\-\-override** _GLOB:NAME_

: Associate this glob pattern with this language, overriding normal language detection.
Expand Down
4 changes: 0 additions & 4 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ json: Output the results as a machine-readable JSON array with an element per fi
.env("DFT_SKIP_UNCHANGED")
.help("Don't display anything if a file is unchanged.")
)
.arg(
Arg::new("missing-as-empty").long("missing-as-empty")
.help("Treat paths that don't exist as equivalent to an empty file. Only applies when diffing files, not directories.")
)
.arg(
Arg::new("override").long("override")
.value_name("GLOB:NAME")
Expand Down

0 comments on commit ba843a6

Please sign in to comment.