Command.setConfigOption

set the config option, if flags not defined, then config option's flags is -C, --config <config-dirs...>; if desc not defined, then description is by default; if defaultDir not defined, then the defaultDir would be ${CURRENT_WORKER_DIR}, which automatically store the path to dir of config file

class Command
setConfigOption
(
string flags = ""
,
string desc = ""
,
string defaultDir = ""
)

Parameters

flags string

the flags of config option

desc string

the description of config option

defaultDir string

the built-in path to the dir of config file, which priority is higher than ${YOUR_PROGRAM_DIR}/{YOUR_PROGRAM_NAME}.config.json

Return Value

Type: Self

Self for chain call

Meta