delta icon indicating copy to clipboard operation
delta copied to clipboard

🚀 minor: document `--` option

Open philcerf opened this issue 1 year ago • 1 comments

Hey.

It seems that delta supports the -- option to end option parsing, so that one can do e.g.:

$ delta -- --weirdFileNameA  --weirdFileNameB

This is however not documented in the -h output and thus neither in the manpage (which I guess is generated from that).

Might be nice to add it there.

Thanks, Philippe.

philcerf avatar Dec 11 '24 00:12 philcerf

I made a pull request to fix this issue.

https://github.com/dandavison/delta/pull/1992

The result is now :

$ delta -help

Usage: delta [OPTIONS] [MINUS_FILE] [PLUS_FILE]

Arguments:
  [MINUS_FILE]
          First file to be compared when delta is being used to diff two files.

          `delta file1 file2` is equivalent to `diff -u file1 file2 | delta`.

  [PLUS_FILE]
          Second file to be compared when delta is being used to diff two files.

          Note: Arguments after '--' are treated as filenames even if they start with '-'.

...

The delta -h command is unchanged because it needs to be concise.

yruellan avatar Apr 25 '25 14:04 yruellan