The pki CLI's --pkcs12 options has been renamed to --pkcs12-file
for consistency with pki-server CLI options.

https://fedorahosted.org/pki/ticket/1742

--
Endi S. Dewata
>From 576979d5c364f51e3930a3e7fd7458bfadd1b5b9 Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <[email protected]>
Date: Thu, 17 Mar 2016 10:59:19 +0100
Subject: [PATCH] Renamed PKCS #12 options for consistency.

The pki CLI's --pkcs12 options has been renamed to --pkcs12-file
for consistency with pki-server CLI options.

https://fedorahosted.org/pki/ticket/1742
---
 base/common/python/pki/cli/pkcs12.py               | 26 +++++++++++-----------
 base/common/python/pki/nssdb.py                    |  4 ++--
 .../netscape/cmstools/pkcs12/PKCS12CertAddCLI.java |  4 ++--
 .../cmstools/pkcs12/PKCS12CertExportCLI.java       |  4 ++--
 .../cmstools/pkcs12/PKCS12CertFindCLI.java         |  4 ++--
 .../cmstools/pkcs12/PKCS12CertRemoveCLI.java       |  4 ++--
 .../netscape/cmstools/pkcs12/PKCS12ExportCLI.java  |  4 ++--
 .../netscape/cmstools/pkcs12/PKCS12ImportCLI.java  |  4 ++--
 .../netscape/cmstools/pkcs12/PKCS12KeyFindCLI.java |  4 ++--
 .../cmstools/pkcs12/PKCS12KeyRemoveCLI.java        |  4 ++--
 base/server/python/pki/server/__init__.py          |  8 +++----
 base/server/python/pki/server/cli/ca.py            | 24 ++++++++++----------
 base/server/python/pki/server/cli/kra.py           | 12 +++++-----
 base/server/python/pki/server/cli/ocsp.py          | 14 ++++++------
 base/server/python/pki/server/cli/tks.py           | 12 +++++-----
 base/server/python/pki/server/cli/tps.py           | 12 +++++-----
 16 files changed, 72 insertions(+), 72 deletions(-)

diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py
index aa04582f73479df4110641e46fe096d96e93b87f..2ab60322519c4871b84698d1746977a11a51d85e 100644
--- a/base/common/python/pki/cli/pkcs12.py
+++ b/base/common/python/pki/cli/pkcs12.py
@@ -46,23 +46,23 @@ class PKCS12ImportCLI(pki.cli.CLI):
         super(PKCS12ImportCLI, self).__init__(
             'import', 'Import PKCS #12 file into NSS database')
 
-    def print_help(self):
+    def print_help(self):  # flake8: noqa
         print('Usage: pki pkcs12-import [OPTIONS]')
         print()
-        print('      --pkcs12                    PKCS #12 file containing certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('      --no-trust-flags            Do not include trust flags')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --debug                     Run in debug mode.')
-        print('      --help                      Show help message.')
+        print('      --pkcs12-file <path>           PKCS #12 file containing certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  containing the PKCS #12 password.')
+        print('      --no-trust-flags               Do not include trust flags')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --debug                        Run in debug mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
 
         try:
             opts, _ = getopt.gnu_getopt(args, 'v', [
-                'pkcs12=', 'pkcs12-password=', 'pkcs12-password-file=',
+                'pkcs12-file=', 'pkcs12-password=', 'pkcs12-password-file=',
                 'no-trust-flags', 'verbose', 'debug', 'help'])
 
         except getopt.GetoptError as e:
@@ -76,7 +76,7 @@ class PKCS12ImportCLI(pki.cli.CLI):
         no_trust_flags = False
 
         for o, a in opts:
-            if o == '--pkcs12':
+            if o == '--pkcs12-file':
                 pkcs12_file = a
 
             elif o == '--pkcs12-password':
@@ -133,7 +133,7 @@ class PKCS12ImportCLI(pki.cli.CLI):
                 cmd = ['pkcs12-cert-find']
 
                 if pkcs12_file:
-                    cmd.extend(['--pkcs12', pkcs12_file])
+                    cmd.extend(['--pkcs12-file', pkcs12_file])
 
                 if pkcs12_password:
                     cmd.extend(['--pkcs12-password', pkcs12_password])
@@ -204,7 +204,7 @@ class PKCS12ImportCLI(pki.cli.CLI):
                 cmd = ['pkcs12-cert-export']
 
                 if pkcs12_file:
-                    cmd.extend(['--pkcs12', pkcs12_file])
+                    cmd.extend(['--pkcs12-file', pkcs12_file])
 
                 if pkcs12_password:
                     cmd.extend(['--pkcs12-password', pkcs12_password])
@@ -233,7 +233,7 @@ class PKCS12ImportCLI(pki.cli.CLI):
         cmd = ['pkcs12-import']
 
         if pkcs12_file:
-            cmd.extend(['--pkcs12', pkcs12_file])
+            cmd.extend(['--pkcs12-file', pkcs12_file])
 
         if pkcs12_password:
             cmd.extend(['--pkcs12-password', pkcs12_password])
diff --git a/base/common/python/pki/nssdb.py b/base/common/python/pki/nssdb.py
index 8d0f96711be3012ec4618dfb51b1d463f675d673..43a97146d23224bbbcb568ee5dc509364e25e47c 100644
--- a/base/common/python/pki/nssdb.py
+++ b/base/common/python/pki/nssdb.py
@@ -522,7 +522,7 @@ class NSSDatabase(object):
 
             cmd.extend([
                 'pkcs12-import',
-                '--pkcs12', pkcs12_file,
+                '--pkcs12-file', pkcs12_file,
                 '--pkcs12-password-file', password_file
             ])
 
@@ -560,7 +560,7 @@ class NSSDatabase(object):
             cmd.extend(['pkcs12-export'])
 
             cmd.extend([
-                '--pkcs12', pkcs12_file,
+                '--pkcs12-file', pkcs12_file,
                 '--pkcs12-password-file', password_file
             ])
 
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertAddCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertAddCLI.java
index ce7b3dd792c34f8c26e21a58962704f6e4ac2dee..c3c5ef4893fae8329a63bda10145ebebb9f0d4e5 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertAddCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertAddCLI.java
@@ -51,7 +51,7 @@ public class PKCS12CertAddCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -109,7 +109,7 @@ public class PKCS12CertAddCLI extends CLI {
 
         String nickname = cmdArgs[0];
 
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertExportCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertExportCLI.java
index c8ceab75778d0a8e257d36b240b91056104a1f91..04e2b7b6fcee28246ee7f21f3293cec69373a255 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertExportCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertExportCLI.java
@@ -54,7 +54,7 @@ public class PKCS12CertExportCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -113,7 +113,7 @@ public class PKCS12CertExportCLI extends CLI {
 
         String nickname = cmdArgs[0];
 
-        String pkcs12File = cmd.getOptionValue("pkcs12");
+        String pkcs12File = cmd.getOptionValue("pkcs12-file");
 
         if (pkcs12File == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertFindCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertFindCLI.java
index 8c6fb88450da05f96198e61bcf51f0fc97336007..a979331888bb909274010057fce3de062256eccd 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertFindCLI.java
@@ -52,7 +52,7 @@ public class PKCS12CertFindCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -105,7 +105,7 @@ public class PKCS12CertFindCLI extends CLI {
             System.exit(-1);
         }
 
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertRemoveCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertRemoveCLI.java
index 9dbf767ef1365b9dc9b933fc57bc243e268cc0c6..8f7f11398c8fd9760ca0e709d19fd0af2a4b689b 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertRemoveCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12CertRemoveCLI.java
@@ -50,7 +50,7 @@ public class PKCS12CertRemoveCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -105,7 +105,7 @@ public class PKCS12CertRemoveCLI extends CLI {
 
         String nickname = cmdArgs[0];
 
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ExportCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ExportCLI.java
index f172512845378c6a45287815eda8006173bbaba5..52a993125c70f3b8f6e477598150001a495741d1 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ExportCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ExportCLI.java
@@ -48,7 +48,7 @@ public class PKCS12ExportCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -96,7 +96,7 @@ public class PKCS12ExportCLI extends CLI {
         }
 
         String[] nicknames = cmd.getArgs();
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ImportCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ImportCLI.java
index bdd8f52bc0a53824189e03df3c047a3b11c83bcf..ae574d3870a610cdf009b852732644675424a700 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ImportCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12ImportCLI.java
@@ -48,7 +48,7 @@ public class PKCS12ImportCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -96,7 +96,7 @@ public class PKCS12ImportCLI extends CLI {
         }
 
         String[] nicknames = cmd.getArgs();
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyFindCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyFindCLI.java
index 92b9cf1321d4ce7237bae93ea99456991fdef0a0..0dc39f470279016373f0d159824d5b8ab7695c32 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyFindCLI.java
@@ -52,7 +52,7 @@ public class PKCS12KeyFindCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -105,7 +105,7 @@ public class PKCS12KeyFindCLI extends CLI {
             System.exit(-1);
         }
 
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyRemoveCLI.java b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyRemoveCLI.java
index d1bdbfa36ba811c60f62c6f57e59c6e1183520d7..19b368765d0ea93a15b4c2ecd037f545a75b03ea 100644
--- a/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyRemoveCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/pkcs12/PKCS12KeyRemoveCLI.java
@@ -51,7 +51,7 @@ public class PKCS12KeyRemoveCLI extends CLI {
     }
 
     public void createOptions() {
-        Option option = new Option(null, "pkcs12", true, "PKCS #12 file");
+        Option option = new Option(null, "pkcs12-file", true, "PKCS #12 file");
         option.setArgName("path");
         options.addOption(option);
 
@@ -106,7 +106,7 @@ public class PKCS12KeyRemoveCLI extends CLI {
 
         BigInteger keyID = new BigInteger(cmdArgs[0], 16);
 
-        String filename = cmd.getOptionValue("pkcs12");
+        String filename = cmd.getOptionValue("pkcs12-file");
 
         if (filename == null) {
             System.err.println("Error: Missing PKCS #12 file.");
diff --git a/base/server/python/pki/server/__init__.py b/base/server/python/pki/server/__init__.py
index 114a6e461e213d846a4ca94d520d511fbda5fa59..b046f177e60f41004ec3ecda724bd1c5b8c0dfd1 100644
--- a/base/server/python/pki/server/__init__.py
+++ b/base/server/python/pki/server/__init__.py
@@ -202,7 +202,7 @@ class PKISubsystem(object):
 
             cmd.extend([
                 'pkcs12-cert-add',
-                '--pkcs12', pkcs12_file,
+                '--pkcs12-file', pkcs12_file,
                 '--pkcs12-password-file', pkcs12_password_file,
             ])
 
@@ -250,7 +250,7 @@ class PKISubsystem(object):
 
             cmd.extend([
                 'pkcs12-export',
-                '--pkcs12', pkcs12_file,
+                '--pkcs12-file', pkcs12_file,
                 '--pkcs12-password-file', pkcs12_password_file,
                 nickname
             ])
@@ -269,7 +269,7 @@ class PKISubsystem(object):
 
             cmd.extend([
                 'pkcs12-cert-del',
-                '--pkcs12', pkcs12_file,
+                '--pkcs12-file', pkcs12_file,
                 '--pkcs12-password-file', pkcs12_password_file,
                 nickname
             ])
@@ -579,7 +579,7 @@ class PKIInstance(object):
 
                 cmd.extend([
                     'pkcs12-cert-add',
-                    '--pkcs12', pkcs12_file,
+                    '--pkcs12-file', pkcs12_file,
                     '--pkcs12-password-file', pkcs12_password_file,
                 ])
 
diff --git a/base/server/python/pki/server/cli/ca.py b/base/server/python/pki/server/cli/ca.py
index 54eabe299f6f7061d119fc8c5eabbd68b0f60ba6..dbf8239f4f548714beb0c68d7bca2c84f6c0fb74 100644
--- a/base/server/python/pki/server/cli/ca.py
+++ b/base/server/python/pki/server/cli/ca.py
@@ -68,12 +68,12 @@ class CACertChainExportCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server ca-cert-chain-export [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
@@ -323,12 +323,12 @@ class CAClonePrepareCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server ca-clone-prepare [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
diff --git a/base/server/python/pki/server/cli/kra.py b/base/server/python/pki/server/cli/kra.py
index ba1bf5a97b0767e5e11169677dcb741912f55016..cba3e234bb311458d859204bb81335a1591af176 100644
--- a/base/server/python/pki/server/cli/kra.py
+++ b/base/server/python/pki/server/cli/kra.py
@@ -57,12 +57,12 @@ class KRAClonePrepareCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server kra-clone-prepare [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
diff --git a/base/server/python/pki/server/cli/ocsp.py b/base/server/python/pki/server/cli/ocsp.py
index 45d7fca8359e0dc3e871d08bab2690b5619a6079..c32e8ded666b003fb4892053282a7e2d58d6094d 100644
--- a/base/server/python/pki/server/cli/ocsp.py
+++ b/base/server/python/pki/server/cli/ocsp.py
@@ -57,12 +57,12 @@ class OCSPClonePrepareCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server ocsp-clone-prepare [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
@@ -85,7 +85,7 @@ class OCSPClonePrepareCLI(pki.cli.CLI):
             if o in ('-i', '--instance'):
                 instance_name = a
 
-            elif o == '--pkcs12':
+            elif o == '--pkcs12-file':
                 pkcs12_file = a
 
             elif o == '--pkcs12-password':
diff --git a/base/server/python/pki/server/cli/tks.py b/base/server/python/pki/server/cli/tks.py
index 2bdfce84a3c38a1b9f1846d93fbee6c5778e4289..0bcf748c3ca65980a888946d807536d62bfdf894 100644
--- a/base/server/python/pki/server/cli/tks.py
+++ b/base/server/python/pki/server/cli/tks.py
@@ -57,12 +57,12 @@ class TKSClonePrepareCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server tks-clone-prepare [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
diff --git a/base/server/python/pki/server/cli/tps.py b/base/server/python/pki/server/cli/tps.py
index 731b9720c7640fe597c8ac2efe190390e3ce6df6..f40223ddb70f97e5ee7a35005a9c0e9b6da1a268 100644
--- a/base/server/python/pki/server/cli/tps.py
+++ b/base/server/python/pki/server/cli/tps.py
@@ -57,12 +57,12 @@ class TPSClonePrepareCLI(pki.cli.CLI):
     def print_help(self):
         print('Usage: pki-server tps-clone-prepare [OPTIONS]')
         print()
-        print('  -i, --instance <instance ID>    Instance ID (default: pki-tomcat).')
-        print('      --pkcs12-file               PKCS #12 file to store certificates and keys.')
-        print('      --pkcs12-password           Password for the PKCS #12 file.')
-        print('      --pkcs12-password-file      File containing the PKCS #12 password.')
-        print('  -v, --verbose                   Run in verbose mode.')
-        print('      --help                      Show help message.')
+        print('  -i, --instance <instance ID>       Instance ID (default: pki-tomcat).')
+        print('      --pkcs12-file <path>           PKCS #12 file to store certificates and keys.')
+        print('      --pkcs12-password <password>   Password for the PKCS #12 file.')
+        print('      --pkcs12-password-file <path>  File containing the PKCS #12 password.')
+        print('  -v, --verbose                      Run in verbose mode.')
+        print('      --help                         Show help message.')
         print()
 
     def execute(self, args):
-- 
2.4.3

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to