[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XEN PATCH] scripts/add_maintainers.pl: set double dashes for long options
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Dmytro Prokopchuk1 <dmytro_prokopchuk1@xxxxxxxx>
- Date: Mon, 30 Jun 2025 08:01:46 +0000
- Accept-language: en-US, uk-UA, ru-RU
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gvzU/Y6IR77BtCJ1BMIGK/zyLTtZdScEZ6txdRAwZ6Y=; b=ToPVMFDkQjN2MT/D+pTeczQ7HbZq3YzDXm1ywpDoOOK0+y1UJO8Gl3z7g1XPUTsXFf7tsBOtYl3oGO/4PTYyT3h+WSQgnqIULehbGxWGW98y5+54i3PeTs0syKNi/8Bpw+FYgXAhQO0s4+tAjursRGZbENNcjxKF2tB2qAUhXQJKgP6u27BV6V+Qx0cS/BhtVyK7HNS6qjuU9681HagppoavC0NM57cZh4PuhB0wUQNV6m7LNVjAAh9Ci7c8QcB6ZXtekmWP7df2aIIt+X8LAXYKAcbFmsFPu9TYHHDYt2Qpvd3XF/EuXpXC4EILHgpMDJcfB7Ts6aFWOLPdpIVckA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wgyuNFZHREPKpFUPtmOzL6aypLo/4rnPLxtGMRL+nQRvQ7vOBqDwPKfTP3UFWiWzLuEvCWbyULnTICP/tPWMtGZPBnWMs8guFVJOB6vbfxqcF/kN//lrzihUlO2diHdOK1o0gb3wbhK9TZjHuap/lET3BTWBMkHAjzfJo0BZm4/lEzzKV1PlBTGVzR149H9gsuCpJyWwyy2m/MvQ56Q3W9DY5Q6miSMyFVWUm3+t3Cgeuwb25UoHLOkxuvFdd1O2gCPMPoqSLsP7261cD/R+gE4+dPUWwin8aXD7wGRp8e55jKUMhS2StM6KecmVTZ0HIqoFY70nfcSXcyua/+RaPA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Dmytro Prokopchuk1 <dmytro_prokopchuk1@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Mon, 30 Jun 2025 08:01:54 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHb6ZU5GqvLxUb1v0eVLL/RYoouyw==
- Thread-topic: [XEN 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@xxxxxxxxxxxxxxxxxxxx ...
which has wrong option '-to'.
It may be confused for user.
Set double dashes for longer options to avoid that.
Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx>
---
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 <patchdir>
+# Usage: perl scripts/add_maintainers.pl [OPTIONS] --patchdir <patchdir>
#
# Prerequisites: Execute
# git format-patch ... -o <patchdir> ...
@@ -126,7 +126,7 @@ WORKFLOW:
Step 1: git format-patch ... -o <patchdir> ...
Step 2: ./scripts/add_maintainers.pl -d <patchdir>
This overwrites *.patch files in <patchdir> but makes a backup
- Step 3: git send-email -to xen-devel\@lists.xenproject.org <patchdir>/*.patch
+ Step 3: git send-email --to xen-devel\@lists.xenproject.org
<patchdir>/*.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;
--
2.43.0
|