@@ -28,6 +28,7 @@ import { kebabToCamelCase } from "@ignored/hardhat-vnext-utils/string";
28
28
29
29
import { resolveHardhatConfigPath } from "../../config.js" ;
30
30
import { createHardhatRuntimeEnvironment } from "../../hre.js" ;
31
+ import { BUILTIN_GLOBAL_OPTIONS_DEFINITIONS } from "../builtin-global-options.js" ;
31
32
import { builtinPlugins } from "../builtin-plugins/index.js" ;
32
33
import { setGlobalHardhatRuntimeEnvironment } from "../global-hre-instance.js" ;
33
34
import { importUserConfig } from "../helpers/config-loading.js" ;
@@ -77,8 +78,12 @@ export async function main(
77
78
builtinGlobalOptions . configPath ,
78
79
) ;
79
80
80
- const globalOptionDefinitions =
81
+ const pluginGlobalOptionDefinitions =
81
82
buildGlobalOptionDefinitions ( resolvedPlugins ) ;
83
+ const globalOptionDefinitions = new Map ( [
84
+ ...BUILTIN_GLOBAL_OPTIONS_DEFINITIONS ,
85
+ ...pluginGlobalOptionDefinitions ,
86
+ ] ) ;
82
87
const userProvidedGlobalOptions = await parseGlobalOptions (
83
88
globalOptionDefinitions ,
84
89
cliArguments ,
@@ -87,7 +92,7 @@ export async function main(
87
92
88
93
const hre = await createHardhatRuntimeEnvironment (
89
94
userConfig ,
90
- userProvidedGlobalOptions ,
95
+ { ... builtinGlobalOptions , ... userProvidedGlobalOptions } ,
91
96
{ resolvedPlugins, globalOptionDefinitions } ,
92
97
) ;
93
98
0 commit comments