
    h                         S r SSKrSSKrSSKrSSKrS\R
                  4S jrS\4S jrSS\R                  \R                  \      S\4S jjrg)	z!
archspec command line interface
    Nreturnc                     [         R                  " SSSS9n U R                  SSSSS	[        R                   3S
9  U R                  SSSSS9  U R                  SSSS9nUR                  SSSS9nUR                  [        S9  U $ )Narchspeczarchspec command line interfaceF)descriptionadd_helpz	--versionz-VzShow the version and exit.versionzarchspec, version )helpactionr   z--helpz-hzShow the help and exit.r	   )r	   r
   commandCOMMAND)titlemetavardestcpuz'archspec command line interface for CPU)r	   r   )run)	argparseArgumentParseradd_argumentr   __version__add_subparsers
add_parserset_defaultsr   )parsersubcommandscpu_commands      ,lib/python3.13/site-packages/archspec/cli.py_make_parserr      s    $$5F
 )$X%9%9$:;   $-FvV'' ( K ((6= ) K
 %M    c                       [        [        R                  R                  5       5        g! [         a  n [        U 5         Sn A gSn A ff = f)z"Run the `archspec cpu` subcommand.N   r   )printr   r   hostFileNotFoundError)excs    r   r   r   /   s=    hll!"   c
s   '* 
A	AA	argvc                     [        5       n UR                  U 5      nUR                  c  UR                  5         gUR                  5       $ ! [         a  nUR                  s SnA$ SnAff = f)z*Run the `archspec` command line interface.Nr   )r   
parse_args
SystemExitcoder   
print_helpr   )r%   r   argserrs       r   mainr-   9   s`    ^F  & ||88:  xxs   A 
A+A& A+&A+)N)__doc__r   typingr   archspec.cpur   r   intr   OptionalListstrr-    r   r   <module>r6      s[   
    h-- >S vv{{3/0 C r   