UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

63 lines (60 loc) 1.46 kB
import type { GlobalOptionDefinitions } from "../types/global-options.js"; import { globalFlag, globalOption } from "../config.js"; import { ArgumentType } from "../types/arguments.js"; export const BUILTIN_GLOBAL_OPTIONS_DEFINITIONS: GlobalOptionDefinitions = new Map([ [ "config", { pluginId: "builtin", option: globalOption({ name: "config", description: "A Hardhat config file.", type: ArgumentType.STRING_WITHOUT_DEFAULT, defaultValue: undefined, }), }, ], [ "help", { pluginId: "builtin", option: globalFlag({ name: "help", shortName: "h", description: "Show this message, or a task's help if its name is provided.", }), }, ], [ "init", { pluginId: "builtin", option: globalFlag({ name: "init", description: "Initializes a Hardhat project.", }), }, ], [ "showStackTraces", { pluginId: "builtin", option: globalFlag({ name: "showStackTraces", description: "Show stack traces (always enabled on CI servers).", }), }, ], [ "version", { pluginId: "builtin", option: globalFlag({ name: "version", description: "Show the version of hardhat.", }), }, ], ]);