diff options
author | CosmicHorror <CosmicHorrorDev@pm.me> | 2023-11-02 18:05:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 19:05:55 -0500 |
commit | 4f77cfe1b8681bd164ea990e6c0ec2c2b8acb614 (patch) | |
tree | cc6a21cf2faec0665882c421d077863809c711b6 /gen/completions/_sd | |
parent | 79f5de0db76aef3ab8f02d204890de6f74d69d12 (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/_sd | 3 |
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)]' \ |