Skip to content

Commit 1b2b750

Browse files
authored
Merge pull request #588 from smallstep/max/arg-consistency
consistency for <crt-file> positional arg in cert subcommand
2 parents 30d2674 + 221b2ed commit 1b2b750

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

command/certificate/bundle.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ func bundleCommand() cli.Command {
1818
Name: "bundle",
1919
Action: command.ActionFunc(bundleAction),
2020
Usage: `bundle a certificate with intermediate certificate(s) needed for certificate path validation`,
21-
UsageText: `**step certificate bundle** <crt_file> <ca> <bundle_file>`,
21+
UsageText: `**step certificate bundle** <crt-file> <ca> <bundle-file>`,
2222
Description: `**step certificate bundle** bundles a certificate
2323
with any intermediates necessary to validate the certificate.
2424
2525
## POSITIONAL ARGUMENTS
2626
27-
<crt_file>
27+
<crt-file>
2828
: The path to a leaf certificate to bundle with issuing certificate(s).
2929
3030
<ca>
3131
: The path to the Certificate Authority issusing certificate.
3232
33-
<bundle_file>
33+
<bundle-file>
3434
: The path to write the bundle.
3535
3636
## EXIT CODES

command/certificate/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ you need something else, you can customize the output using templates. See **TEM
5959
<subject>
6060
: The subject of the certificate. Typically this is a hostname for services or an email address for people.
6161
62-
<crt_file>
62+
<crt-file>
6363
: File to write CRT or CSR to (PEM format)
6464
65-
<key_file>
65+
<key-file>
6666
: File to write private key to (PEM format). This argument is optional if **--key** is passed.
6767
6868
## EXIT CODES

command/certificate/format.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ func formatCommand() cli.Command {
2020
Name: "format",
2121
Action: command.ActionFunc(formatAction),
2222
Usage: `reformat certificate`,
23-
UsageText: `**step certificate format** <crt_file> [**--out**=<file>]`,
23+
UsageText: `**step certificate format** <crt-file> [**--out**=<file>]`,
2424
Description: `**step certificate format** prints the certificate or CSR in a different format.
2525
2626
Only 2 formats are currently supported; PEM and ASN.1 DER. This tool will convert
2727
a certificate or CSR in one format to the other.
2828
2929
## POSITIONAL ARGUMENTS
3030
31-
<crt_file>
31+
<crt-file>
3232
: Path to a certificate or CSR file.
3333
3434
## EXIT CODES

command/certificate/inspect.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func inspectCommand() cli.Command {
2323
Name: "inspect",
2424
Action: cli.ActionFunc(inspectAction),
2525
Usage: `print certificate or CSR details in human readable format`,
26-
UsageText: `**step certificate inspect** <crt_file>
26+
UsageText: `**step certificate inspect** <crt-file>
2727
[**--bundle**] [**--short**] [**--format**=<format>] [**--roots**=<root-bundle>]
2828
[**--servername**=<servername>]`,
2929
Description: `**step certificate inspect** prints the details of a certificate
@@ -32,14 +32,14 @@ STDERR instead of STDOUT. This is an intentional barrier to accidental
3232
misuse: scripts should never rely on the contents of an unvalidated certificate.
3333
For scripting purposes, use **step certificate verify**.
3434
35-
If crt_file contains multiple certificates (i.e., it is a certificate "bundle")
35+
If crt-file contains multiple certificates (i.e., it is a certificate "bundle")
3636
the first certificate in the bundle will be output. Pass the --bundle option to
3737
print all certificates in the order in which they appear in the bundle.
3838
3939
## POSITIONAL ARGUMENTS
4040
41-
<crt_file>
42-
: Path to a certificate or certificate signing request (CSR) to inspect. A hyphen ("-") indicates STDIN as <crt_file>.
41+
<crt-file>
42+
: Path to a certificate or certificate signing request (CSR) to inspect. A hyphen ("-") indicates STDIN as <crt-file>.
4343
4444
## EXIT CODES
4545

command/certificate/lint.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ func lintCommand() cli.Command {
1818
Name: "lint",
1919
Action: cli.ActionFunc(lintAction),
2020
Usage: `lint certificate details`,
21-
UsageText: `**step certificate lint** <crt_file> [**--roots**=<root-bundle>]
21+
UsageText: `**step certificate lint** <crt-file> [**--roots**=<root-bundle>]
2222
[**--servername**=<servername>]`,
2323
Description: `**step certificate lint** checks a certificate for common
2424
errors and outputs the result in JSON format.
2525
2626
## POSITIONAL ARGUMENTS
2727
28-
<crt_file>
28+
<crt-file>
2929
: Path to a certificate or certificate signing request (CSR) to lint.
3030
3131
## EXIT CODES

command/certificate/sign.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func signCommand() cli.Command {
3636
Name: "sign",
3737
Action: cli.ActionFunc(signAction),
3838
Usage: "sign a certificate signing request (CSR)",
39-
UsageText: `**step certificate sign** <csr_file> <crt_file> <key_file>
39+
UsageText: `**step certificate sign** <csr-file> <crt-file> <key-file>
4040
[**--profile**=<profile>] [**--template**=<file>]
4141
[**--password-file**=<file>] [**--path-len**=<maximum>]
4242
[**--not-before**=<time|duration>] [**--not-after**=<time|duration>]
@@ -46,13 +46,13 @@ certificate from a certificate signing request (CSR).
4646
4747
## POSITIONAL ARGUMENTS
4848
49-
<csr_file>
49+
<csr-file>
5050
: The path to a certificate signing request (CSR) to be signed.
5151
52-
<crt_file>
52+
<crt-file>
5353
: The path to an issuing certificate.
5454
55-
<key_file>
55+
<key-file>
5656
: The path to a private key for signing the CSR.
5757
5858
## EXIT CODES

command/certificate/verify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func verifyCommand() cli.Command {
1717
Name: "verify",
1818
Action: cli.ActionFunc(verifyAction),
1919
Usage: `verify a certificate`,
20-
UsageText: `**step certificate verify** <crt_file> [**--host**=<host>]
20+
UsageText: `**step certificate verify** <crt-file> [**--host**=<host>]
2121
[**--roots**=<root-bundle>] [**--servername**=<servername>]`,
2222
Description: `**step certificate verify** executes the certificate path
2323
validation algorithm for x.509 certificates defined in RFC 5280. If the
@@ -26,7 +26,7 @@ an error occurs, this command will produce a non-zero return value.
2626
2727
## POSITIONAL ARGUMENTS
2828
29-
<crt_file>
29+
<crt-file>
3030
: The path to a certificate to validate.
3131
3232
## EXIT CODES

0 commit comments

Comments
 (0)