summaryrefslogtreecommitdiffstats
path: root/gen/completions/_sd
diff options
context:
space:
mode:
authorCosmicHorror <CosmicHorrorDev@pm.me>2023-11-02 18:05:55 -0600
committerGitHub <noreply@github.com>2023-11-02 19:05:55 -0500
commit4f77cfe1b8681bd164ea990e6c0ec2c2b8acb614 (patch)
treecc6a21cf2faec0665882c421d077863809c711b6 /gen/completions/_sd
parent79f5de0db76aef3ab8f02d204890de6f74d69d12 (diff)
Rework the replacements flag (#267)
* Add replacements tests * Honor `-n` when using `--preview` * Rework CLI for replacements flag * Remove dead code * Remove lingering TODO
Diffstat (limited to 'gen/completions/_sd')
-rw-r--r--gen/completions/_sd3
1 files changed, 2 insertions, 1 deletions
diff --git a/gen/completions/_sd b/gen/completions/_sd
index e8f2804..1a8c150 100644
--- a/gen/completions/_sd
+++ b/gen/completions/_sd
@@ -15,7 +15,8 @@ _sd() {
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
-'-n+[Limit the number of replacements]:REPLACEMENTS: ' \
+'-n+[Limit the number of replacements that can occur per file. 0 indicates unlimited replacements]:LIMIT: ' \
+'--max-replacements=[Limit the number of replacements that can occur per file. 0 indicates unlimited replacements]:LIMIT: ' \
'-f+[Regex flags. May be combined (like \`-f mc\`).]:FLAGS: ' \
'--flags=[Regex flags. May be combined (like \`-f mc\`).]:FLAGS: ' \
'-p[Display changes in a human reviewable format (the specifics of the format are likely to change in the future)]' \