From 64be4fecd7d95058fbbb9057a6170fb4e0e9ad06 Mon Sep 17 00:00:00 2001 From: Dmytro Prokopchuk Date: Tue, 1 Jul 2025 11:25:17 +0200 Subject: [PATCH] scripts/add_maintainers.pl: set double dashes for long options Current script shows message: Don't forget to add the subject and message to ... Then perform: git send-email -to xen-devel@lists.xenproject.org ... which has wrong option '-to'. It may be confused for user. Set double dashes for longer options to avoid that. Fixes: e1f912cbf717 ("scripts/add_maintainers.pl: New script") Signed-off-by: Dmytro Prokopchuk Reviewed-by: Anthony PERARD --- scripts/add_maintainers.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/add_maintainers.pl b/scripts/add_maintainers.pl index 380e8da22a..5ad0869730 100755 --- a/scripts/add_maintainers.pl +++ b/scripts/add_maintainers.pl @@ -3,7 +3,7 @@ # # Add maintainers to patches generated with git format-patch # -# Usage: perl scripts/add_maintainers.pl [OPTIONS] -patchdir +# Usage: perl scripts/add_maintainers.pl [OPTIONS] --patchdir # # Prerequisites: Execute # git format-patch ... -o ... @@ -126,7 +126,7 @@ WORKFLOW: Step 1: git format-patch ... -o ... Step 2: ./scripts/add_maintainers.pl -d This overwrites *.patch files in but makes a backup - Step 3: git send-email -to xen-devel\@lists.xenproject.org /*.patch + Step 3: git send-email --to xen-devel\@lists.xenproject.org /*.patch EOT # Constants and functions related to LOCATIONS @@ -371,7 +371,7 @@ if ($has_cover_letter) { } print "Then perform:\n". - "git send-email -to xen-devel\@lists.xenproject.org ". + "git send-email --to xen-devel\@lists.xenproject.org ". $patch_dir.'/'.$patch_prefix."*.patch"."\n"; exit 0;