:meta private:
(
self, args: Sequence[str], *, exclude_only: bool = False
)
| 647 | # |
| 648 | |
| 649 | def consider_preparse( |
| 650 | self, args: Sequence[str], *, exclude_only: bool = False |
| 651 | ) -> None: |
| 652 | """:meta private:""" |
| 653 | i = 0 |
| 654 | n = len(args) |
| 655 | while i < n: |
| 656 | opt = args[i] |
| 657 | i += 1 |
| 658 | if isinstance(opt, str): |
| 659 | if opt == "-p": |
| 660 | try: |
| 661 | parg = args[i] |
| 662 | except IndexError: |
| 663 | return |
| 664 | i += 1 |
| 665 | elif opt.startswith("-p"): |
| 666 | parg = opt[2:] |
| 667 | else: |
| 668 | continue |
| 669 | if exclude_only and not parg.startswith("no:"): |
| 670 | continue |
| 671 | self.consider_pluginarg(parg) |
| 672 | |
| 673 | def consider_pluginarg(self, arg: str) -> None: |
| 674 | """:meta private:""" |