| Server IP : 66.29.153.156 / Your IP : 216.73.216.223 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././opt/hc_python/lib64/python3.12/site-packages/identify/__pycache__/ |
Upload File : |
�
��!h� � �f � d dl mZ d dlZd dlZd dlmZ d dlmZ ddd�Zedk( r
e e� � �y) � )�annotationsN)�Sequence)�identifyc � � t j � }|j dd�� |j d� |j | � }|j rt
j }nt
j } t ||j � � }|syt t j |� � y# t $ r}t |� Y d }~yd }~ww xY w)Nz--filename-only�
store_true)�action�path� r )�argparse�ArgumentParser�add_argument�
parse_args�
filename_onlyr �tags_from_filename�tags_from_path�sortedr �
ValueError�print�json�dumps)�argv�parser�args�func�tags�es �;/opt/hc_python/lib/python3.12/site-packages/identify/cli.py�mainr
s� � �
�
$�
$�
&�F�
���)�,��?�
��������T�"�D�����*�*���&�&����d�4�9�9�o�&��
��
�d�j�j������ � �
�a�����s �8B5 �5 C�>C�C�__main__)N)r zSequence[str] | None�return�int)
�
__future__r r r �collections.abcr r r �__name__�
SystemExit� � r �<module>r( s5 �� "� � � $� ��0 �z��
�T�V�
�� r'