From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id 610702D45CB; Sat, 28 Nov 2026 17:13:35 +1100 (AEDT) Date: Sat, 28 Nov 2026 17:13:37 +1100 To: sup-commits@supmua.dev Subject: [sup.git] 02/08: sup-sync-back-maildir: remove broken negative short options MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179584641514.302139.17817016268117078700@bl2.djc.id.au> References: <179584641514.302139.17817016268117078700@bl2.djc.id.au> Thread-Index: AQAAEjRW8AyDbWtbRRaCMIXB6V3YXw== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 89ac0a7fd8a9da8cc5627b6423ea144bd0962f08 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261128061335.610702D45CB@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/89ac0a7fd8a9da8cc5627b6423ea144bd0962f08.html commit 89ac0a7fd8a9da8cc5627b6423ea144bd0962f08 Author: Dan Callaghan AuthorDate: Sat Nov 21 11:24:14 2026 +1100 sup-sync-back-maildir: remove broken negative short options Optimist treats boolean flags whose names begin with no_ specially: https://github.com/ManageIQ/optimist/blob/v3.2.1/FAQ.txt#L86 For such options the short flag does not have the expected effect (it sets the value to false not true) and there does not seem to be any reasonable way to fix it. Just delete the short flag for these options. --- bin/sup-sync-back-maildir | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/sup-sync-back-maildir b/bin/sup-sync-back-maildir index 1eeb9a34..5199806a 100755 --- a/bin/sup-sync-back-maildir +++ b/bin/sup-sync-back-maildir @@ -22,8 +22,8 @@ have an e-mail file like this: foo_bar:2,FRS (flags are favorite, replied, seen) and its Xapian entry has labels 'starred', the merge operation will add the 'replied' label to the Xapian entry. -If you choose not to merge (-m) you will lose information ('replied'), and in -the previous example the file will be renamed to foo_bar:2,FS. +If you choose not to merge (--no-merge) you will lose information ('replied'), +and in the previous example the file will be renamed to foo_bar:2,FS. Running this script is *strongly* recommended when setting the "sync_back_to_maildir" option from false to true in config.yaml or changing the @@ -38,8 +38,8 @@ sync back using the configuration parameter sync_back = false in sources.yaml. Options include: EOS - opt :no_confirm, "Don't ask for confirmation before synchronizing", :default => false, :short => "n" - opt :no_merge, "Don't merge new supported Maildir flags (R and P)", :default => false, :short => "m" + opt :no_confirm, "Don't ask for confirmation before synchronizing", :default => false, :short => :none + opt :no_merge, "Don't merge new supported Maildir flags (R and P)", :default => false, :short => :none opt :list_sources, "List your Maildir sources and exit", :default => false, :short => "l" opt :unusual_sources_too, "Sync unusual sources too if no specific source information is given", :default => false, :short => "u" end