From 2904d2c1fe1e9ad1e7aa154fc4cb0d4b06ce0f30 Mon Sep 17 00:00:00 2001 From: Stephen Carter Date: Wed, 14 Feb 2024 13:19:19 -0500 Subject: [PATCH] @W-15041815@: Force the global --json flag to show up in our help text --- src/lib/ScannerCommand.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/ScannerCommand.ts b/src/lib/ScannerCommand.ts index 5b7a4e39e..e37acca0e 100644 --- a/src/lib/ScannerCommand.ts +++ b/src/lib/ScannerCommand.ts @@ -24,6 +24,10 @@ import {Logger} from "@salesforce/core"; * runtime dependency injection points to their corresponding Action classes. */ export abstract class ScannerCommand extends SfCommand implements Displayable { + + // It appears we need to explicitly set this in order for the global --json flag to show up in the generated help text + public static readonly enableJsonFlag = true; + protected async init(): Promise { await super.init(); initContainer();