
    _iY                     D    S SK Jr  S SKJr  S SKJr  S r " S S\5      rg)    )ArgumentParser)
CLICommand)HubApic                     [        U 5      $ )z=Function which will be called for a specific sub parser.
    )LoginCMDargss    P/var/www/html/land-ocr/venv/lib/python3.13/site-packages/modelscope/cli/login.pysubparser_funcr   	   s     D>    c                   <    \ rS rSrSrS r\S\4S j5       rS r	Sr
g)	r      loginc                     Xl         g Nr   )selfr	   s     r
   __init__LoginCMD.__init__   s    	r   parsersc                     U R                  [        R                  5      nUR                  S[        SSS9  UR                  [        S9  g)z'define args for login command.
        z--tokenTz The Access Token for modelscope.)typerequiredhelp)funcN)
add_parserr   nameadd_argumentstrset_defaultsr   )r   parsers     r
   define_argsLoginCMD.define_args   sJ     ##HMM23	 	 	5
 	0r   c                 b    [        5       nUR                  U R                  R                  5        g r   )r   r   r	   token)r   apis     r
   executeLoginCMD.execute!   s    h		$))//"r   r   N)__name__
__module____qualname____firstlineno__r   r   staticmethodr   r!   r&   __static_attributes__ r   r
   r   r      s,    D 	1^ 	1 	1#r   r   N)argparser   modelscope.cli.baser   modelscope.hub.apir   r   r   r.   r   r
   <module>r2      s!    $ * %#z #r   