From b53f004372675bc27a244fd2e60c104fe18170a9 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 22 Jan 2023 10:24:20 +0100 Subject: [PATCH] Fix output of `jj debug completion --help` The help strings for fish and zsh were inverted. --- CHANGELOG.md | 2 ++ src/commands/mod.rs | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc35a1e96..5326c32fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 and duplicate commit no longer crashes. The fix should also resolve any remaining instances of https://github.com/martinvonz/jj/issues/27. +* Fix the output of `jj debug completion --help` by reversing fish and zsh text. + ### Contributors Thanks to the people who made this release happen! diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 76715f6d5..9d8cae6b9 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -833,17 +833,17 @@ struct DebugCompletionArgs { /// /// Apply it by running this: /// - /// autoload -U compinit - /// compinit - /// source <(jj debug completion --zsh | sed '$d') # remove the last line - /// compdef _jj jj + /// jj debug completion --fish | source #[arg(long, verbatim_doc_comment)] fish: bool, /// Print a completion script for Zsh /// /// Apply it by running this: /// - /// jj debug completion --fish | source + /// autoload -U compinit + /// compinit + /// source <(jj debug completion --zsh | sed '$d') # remove the last line + /// compdef _jj jj #[arg(long, verbatim_doc_comment)] zsh: bool, }