dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.36k stars 360 forks source link

šŸ› error: unexpected argument '--generate-completion' found #1610

Open freeformz opened 5 months ago

freeformz commented 5 months ago

I tried out what I found here: https://dandavison.github.io/delta/tips-and-tricks/shell-completion.html

And got the error you see below. I tried it first with the homebrew install, then the downloaded version directly from github. Same issue with either version.

$ ./delta-0.16.5-aarch64-apple-darwin/delta --generate-completion fish
error: unexpected argument '--generate-completion' found

  note: argument '--grep-context-line-style' exists

Usage: delta <--blame-code-style <STYLE>|--blame-format <FMT>|--blame-palette <COLORS>|--blame-separator-format <FMT>|--blame-separator-style <STYLE>|--blame-timestamp-format <FMT>|--blame-timestamp-output-format <FMT>|--color-only|--config <PATH>|--commit-decoration-style <STYLE>|--commit-regex <REGEX>|--commit-style <STYLE>|--dark|--default-language <LANG>|--diff-highlight|--diff-so-fancy|--diff-stat-align-width <N>|--features <FEATURES>|--file-added-label <STRING>|--file-copied-label <STRING>|--file-decoration-style <STYLE>|--file-modified-label <STRING>|--file-removed-label <STRING>|--file-renamed-label <STRING>|--file-style <STYLE>|--file-transformation <SED_CMD>|--grep-context-line-style <STYLE>|--grep-file-style <STYLE>|--grep-header-decoration-style <STYLE>|--grep-header-file-style <STYLE>|--grep-line-number-style <STYLE>|--grep-output-type <OUTPUT_TYPE>|--grep-match-line-style <STYLE>|--grep-match-word-style <STYLE>|--grep-separator-symbol <STRING>|--hunk-header-decoration-style <STYLE>|--hunk-header-file-style <STYLE>|--hunk-header-line-number-style <STYLE>|--hunk-header-style <STYLE>|--hunk-label <STRING>|--hyperlinks|--hyperlinks-commit-link-format <FMT>|--hyperlinks-file-link-format <FMT>|--inline-hint-style <STYLE>|--inspect-raw-lines <true|false>|--keep-plus-minus-markers|--light|--line-buffer-size <N>|--line-fill-method <STRING>|--line-numbers|--line-numbers-left-format <FMT>|--line-numbers-left-style <STYLE>|--line-numbers-minus-style <STYLE>|--line-numbers-plus-style <STYLE>|--line-numbers-right-format <FMT>|--line-numbers-right-style <STYLE>|--line-numbers-zero-style <STYLE>|--list-languages|--list-syntax-themes|--map-styles <STYLES_MAP>|--max-line-distance <DIST>|--max-line-length <N>|--merge-conflict-begin-symbol <STRING>|--merge-conflict-end-symbol <STRING>|--merge-conflict-ours-diff-header-decoration-style <STYLE>|--merge-conflict-ours-diff-header-style <STYLE>|--merge-conflict-theirs-diff-header-decoration-style <STYLE>|--merge-conflict-theirs-diff-header-style <STYLE>|--minus-empty-line-marker-style <STYLE>|--minus-emph-style <STYLE>|--minus-non-emph-style <STYLE>|--minus-style <STYLE>|--navigate|--navigate-regex <REGEX>|--no-gitconfig|--pager <CMD>|--paging <auto|always|never>|--parse-ansi|--plus-emph-style <STYLE>|--plus-empty-line-marker-style <STYLE>|--plus-non-emph-style <STYLE>|--plus-style <STYLE>|--raw|--relative-paths|--right-arrow <STRING>|--show-colors|--show-config|--show-syntax-themes|--show-themes|--side-by-side|--syntax-theme <SYNTAX_THEME>|--tabs <N>|--true-color <auto|always|never>|--whitespace-error-style <STYLE>|--width <N>|--word-diff-regex <REGEX>|--wrap-left-symbol <STRING>|--wrap-max-lines <N>|--wrap-right-percent <PERCENT>|--wrap-right-prefix-symbol <STRING>|--wrap-right-symbol <STRING>|--zero-style <STYLE>|--24-bit-color <auto|always|never>|MINUS_FILE|PLUS_FILE>

For more information, try '--help'.

Let me know if you need any more info!