Skip to content

Add a note about arguments after '--' #1992

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yruellan
Copy link

@yruellan yruellan commented Apr 25, 2025

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

Fix the issue 1926

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.

Note: Arguments after '--' are treated as filenames even if they start with '-'.
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

Successfully merging this pull request may close these issues.

1 participant