Viewing File: /opt/hc_python/lib/python3.12/site-packages/pre_commit/commands/__pycache__/hazmat.cpython-312.pyc
�
i0i
� � � d dl mZ d dlZd dlZd dlmZ d dlmZ d
d�Zdd�Z dd�Z
dd�Zdd �Zdd
�Z
ddd�Zedk( r
e e� � �y)� )�annotationsN)�Sequence)�
normalize_cmdc � � | j d�� }|j dd�� }|j d� |j dt j �� |j d d
�� }|j dt j �� |j dd�� }|j dt j �� y )
N�tool)�dest�cdz"cd to a subdir and run the command)�help�subdir�cmd)�nargs�ignore-exit-codez(run the command but ignore the exit code�n1z!run the command once per filename)�add_subparsers�
add_parser�add_argument�argparse� REMAINDER)�parser�
subparsers� cd_parser�ignore_exit_code_parser� n1_parsers �I/opt/hc_python/lib/python3.12/site-packages/pre_commit/commands/hazmat.py�add_parsersr
s� � ��&�&�F�&�3�J��%�%��7� &� �I� ���8�$�
���5��(:�(:��;�(�3�3��!K� 4� �� �(�(��h�6H�6H�(�I��%�%��6� &� �I� ���5��(:�(:��;� c � � t t | � � D ] \ }}|dk( s�t | � |z
} n t d� �| d |dz
| |d fS )Nz--zhazmat entry must end with `--`� )� enumerate�reversed�len�
SystemExit)r �idx�val�splits r �_cmd_filenamesr&