MCPcopy
hub / github.com/certbot/certbot / flag_default

Function flag_default

certbot/src/certbot/_internal/cli/cli_utils.py:45–51  ·  view source on GitHub ↗

Default value for CLI flag.

(name: str)

Source from the content-addressed store, hash-verified

43
44
45def flag_default(name: str) -> Any:
46 """Default value for CLI flag."""
47 # XXX: this is an internal housekeeping notion of defaults before
48 # argparse has been set up; it is not accurate for all flags. Call it
49 # with caution. Plugin defaults are missing, and some things are using
50 # defaults defined in this file, not in constants.py :(
51 return copy.deepcopy(constants.CLI_DEFAULTS[name])
52
53
54def config_help(name: str, hidden: bool = False) -> Optional[str]:

Callers 7

_plugins_parsingFunction · 0.90
_paths_parserFunction · 0.90
prepare_and_parse_argsFunction · 0.90
_create_subparsersFunction · 0.90
__init__Method · 0.90
set_test_server_optionsFunction · 0.85

Calls

no outgoing calls