Skip to content

🚀 minor: document -- option #1926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
philcerf opened this issue Dec 11, 2024 · 1 comment
Open

🚀 minor: document -- option #1926

philcerf opened this issue Dec 11, 2024 · 1 comment

Comments

@philcerf
Copy link

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.

@yruellan
Copy link

I made a pull request to fix this issue.

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants