From 11cbf63be8cd944e667cfeeaaa18ca06cf513767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Thu, 29 Jan 2026 15:21:28 +0000 Subject: [PATCH] chore: deprecate the use of -f and -l in selfListIngressKeys --- bin/plugin/open/selfDelIngressKey | 12 ++++++------ doc/sphinx/plugins/open/selfDelIngressKey.rst | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/plugin/open/selfDelIngressKey b/bin/plugin/open/selfDelIngressKey index 19b180b..3a078a7 100755 --- a/bin/plugin/open/selfDelIngressKey +++ b/bin/plugin/open/selfDelIngressKey @@ -13,17 +13,17 @@ my $remainingOptions = OVH::Bastion::Plugin::begin( argv => \@ARGV, header => "Here are the public keys that allow you to connect to the bastion", options => { - "line-number-to-delete=i" => \$indexToDelete, # legacy name, keep for compatibility - "id-to-delete|l=i" => \$indexToDelete, - "fingerprint-to-delete|f=s" => \my $fingerprintToDelete, + "line-number-to-delete=i" => \$indexToDelete, # compat, no longer documented since v3.02.00 + "id-to-delete|l=i" => \$indexToDelete, # -l is no longer documented since v3.23.01 + "fingerprint-to-delete|f=s" => \my $fingerprintToDelete, # -f is no longer documented since v3.23.01 }, helptext => <<"EOF", Remove an ingress public key from your account -Usage: --osh SCRIPT_NAME [--id-to-delete|-l ID] [--fingerprint-to-delete|-f FP] +Usage: --osh SCRIPT_NAME [--id-to-delete ID] [--fingerprint-to-delete FP] - -l, --id-to-delete ID Directly specify key id to delete (CAUTION!), you can get id with selfListIngressKeys - -f, --fingerprint-to-delete FP Directly specify the fingerprint of the key to delete (CAUTION!) + --id-to-delete ID Directly specify key id to delete (CAUTION!), you can get id with selfListIngressKeys + --fingerprint-to-delete FP Directly specify the fingerprint of the key to delete (CAUTION!) If none of these options are specified, you'll be prompted interactively. EOF diff --git a/doc/sphinx/plugins/open/selfDelIngressKey.rst b/doc/sphinx/plugins/open/selfDelIngressKey.rst index 433ed22..8a96613 100644 --- a/doc/sphinx/plugins/open/selfDelIngressKey.rst +++ b/doc/sphinx/plugins/open/selfDelIngressKey.rst @@ -9,16 +9,16 @@ Remove an ingress public key from your account .. admonition:: usage :class: cmdusage - --osh selfDelIngressKey [--id-to-delete|-l ID] [--fingerprint-to-delete|-f FP] + --osh selfDelIngressKey [--id-to-delete ID] [--fingerprint-to-delete FP] .. program:: selfDelIngressKey -.. option:: -l, --id-to-delete ID +.. option:: --id-to-delete ID Directly specify key id to delete (CAUTION!), you can get id with selfListIngressKeys -.. option:: -f, --fingerprint-to-delete FP +.. option:: --fingerprint-to-delete FP Directly specify the fingerprint of the key to delete (CAUTION!)