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)
| 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: |