N7| l d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddl Z ddl
mZ ddl
mZ dd l
m
Z
dd
lmZ G d de Zd
eddfdZ e j d d ZdeddfdZdedeeeef fdZdeddfdZdgZdedee fdZdedee fdZdS )z3Version info, help messages, tracing configuration. N)Action)List)Optional)Union)Config)ExitCode) PrintHelp)Parserc , e Zd ZdZd fd ZddZ xZS )
HelpActiona} An argparse Action that will raise an exception in order to skip the
rest of the argument parsing when --help is passed.
This prevents argparse from quitting due to missing required arguments
when any are defined, for example by ``pytest_addoption``.
This is similar to the way that the builtin argparse --help option is
implemented by raising SystemExit.
NFc V t ||d|d| d S )NTr )option_stringsdestconstdefaultnargshelp)super__init__)selfr r r r __class__s d/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/_pytest/helpconfig.pyr zHelpAction.__init__ s@
)
c v t || j | j t |j dd rt
d S )Nafter_preparseF)setattrr r getattr_parserr )r parser namespacevalues
option_strings r __call__zHelpAction.__call__$ s@ 49dj111 6>#3U;; O r )NFN)N)__name__
__module____qualname____doc__r r#
__classcell__)r s @r r r s[
r r r returnc z | d }| dddddd | d d
t dd
| dddg dd | ddddd | ddddddd ! | d"d#d$dd%& d S )'Ndebugconfigz --versionz-Vcountr versionzoDisplay pytest version and information about plugins. When given twice, also display information about plugins.)actionr r r z-hz--helpr z(Show help message and configuration info)r. r r z-pappendpluginsnamezEarly-load given plugin module name or entry point (multi-allowed). To avoid loading of plugins, use the `no:` prefix, e.g. `no:doctest`.)r. r r metavarr z
--traceconfigz--trace-config
store_trueFz)Trace considerations of conftest.py files)r. r r z--debugstore?zpytestdebug.logdebugDEBUG_FILE_NAMEzStore internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Default: pytestdebug.log.)r. r r r r2 r z-oz--override-inioverride_iniz^Override ini option with "option=value" style, e.g. `-o xfail_strict=True -o cache_dir=cache`.)r r. r )getgroup addoption
_addoptionr )r groups r pytest_addoptionr= , s> OOM**E OO
D
7
OO
8
OO
!$
: r T)hookwrapperc # K d V } | j j rj j }t |dd dt
j dd t t t j dt j
dj j d j j j j t j d
|z d
fd} | d S d S )Nwzutf-8)encodingzversions pytest-z , python-.z
cwd=z
args=z
z'writing pytest debug information to %s
r) c t j dj z j j d d S )Nz%wrote pytest debug information to %s
)closesysstderrwriter1 traceroot setwriter)config debugfileundo_tracings r
unset_tracingz+pytest_cmdline_parse.