MCPcopy
hub / github.com/certbot/certbot / add

Method add

certbot/src/certbot/_internal/cli/helpful.py:404–417  ·  view source on GitHub ↗

Add a new command line argument. :param topics: str or [str] help topic(s) this should be listed under, or None for options that don't fit under a specific topic which will only be shown in "--help all" output. The first e

(self, topics: Optional[Union[list[Optional[str]], str]], *args: Any,
            **kwargs: Any)

Source from the content-addressed store, hash-verified

402 return True
403
404 def add(self, topics: Optional[Union[list[Optional[str]], str]], *args: Any,
405 **kwargs: Any) -> None:
406 """Add a new command line argument.
407
408 :param topics: str or [str] help topic(s) this should be listed under,
409 or None for options that don't fit under a specific
410 topic which will only be shown in "--help all" output.
411 The first entry determines where the flag lives in the
412 "--help all" output (None -> "optional arguments").
413 :param list *args: the names of this argument flag
414 :param dict **kwargs: various argparse settings for this argument
415
416 """
417 self.actions.append(self._add(topics, *args, **kwargs))
418
419 def _add(self, topics: Optional[Union[list[Optional[str]], str]], *args: Any,
420 **kwargs: Any) -> configargparse.Action:

Callers 15

prepare_and_parse_argsFunction · 0.95
delete_filesFunction · 0.45
deploy_hookFunction · 0.45
_plugins_parsingFunction · 0.45
_create_subparsersFunction · 0.45
add_argumentMethod · 0.45
test_cleanupMethod · 0.45

Calls 2

_addMethod · 0.95
appendMethod · 0.80

Tested by 7

test_cleanupMethod · 0.36
test_cleanupMethod · 0.36