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();