From c3a1e18f68b6a187597601acba2d47f007838c11 Mon Sep 17 00:00:00 2001 From: Cayman Date: Mon, 4 Oct 2021 10:22:16 -0500 Subject: [PATCH] Allow LODESTAR_PRESET env var (#3307) --- packages/cli/src/options/globalOptions.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/cli/src/options/globalOptions.ts b/packages/cli/src/options/globalOptions.ts index cd1a4cc2f05..d942ab0a6a9 100644 --- a/packages/cli/src/options/globalOptions.ts +++ b/packages/cli/src/options/globalOptions.ts @@ -6,6 +6,7 @@ interface IGlobalSingleArgs { rootDir: string; network: NetworkName; paramsFile: string; + preset: string; } export const defaultNetwork: NetworkName = "mainnet"; @@ -27,6 +28,12 @@ const globalSingleOptions: ICliCommandOptions = { description: "Network configuration file", type: "string", }, + + // hidden option to allow for LODESTAR_PRESET to be set + preset: { + hidden: true, + type: "string", + }, }; export const rcConfigOption: [string, string, (configPath: string) => Record] = [