From 242248c8e09b272a78163c543c54220eb10b4c20 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 27 Jun 2024 15:11:12 -0700 Subject: [PATCH] Fix error message on step certificate inspect This commit fixes the error message displayed when we run "step certificate inspect --short --format pem ...". --- command/certificate/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/certificate/inspect.go b/command/certificate/inspect.go index a8940385e..1c4253ecd 100644 --- a/command/certificate/inspect.go +++ b/command/certificate/inspect.go @@ -202,7 +202,7 @@ func inspectAction(ctx *cli.Context) error { return errs.InvalidFlagValue(ctx, "format", format, "text, json, pem") } if short && (format == "json" || format == "pem") { - return errs.IncompatibleFlagWithFlag(ctx, "short", "format json") + return errs.IncompatibleFlagWithFlag(ctx, "short", "format "+format) } switch addr, isURL, err := trimURL(crtFile); {