
    k7i              
           S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  \R                  " SS9S	\\\
" S
S94   S\\\
" S
S94   4S j5       rg)z.Run Cyclopts applications from Python scripts.    )Path)	Annotated)app)load_app_from_script)	Parameter )
help_flagsscriptT)allow_leading_hyphenargsc                    [        U 5      [        R                  ;   a  [        R                  " 5         g[	        U 5      u  p#U" U5      $ )a"  Run a Cyclopts application from a Python script with dynamic shell completion.

All arguments after the script path are passed to the loaded application.

Shell completion is available. Run once to install (persistent):
``cyclopts --install-completion``

Parameters
----------
script : str
    Python script path with optional ':app_object' notation.
args : str
    Arguments to pass to the loaded application.

Examples
--------
Run a script:
    cyclopts run myapp.py --verbose foo bar

Specify app object:
    cyclopts run myapp.py:app --help
N)strr   r	   
help_printr   )r
   r   app_obj_s       J/home/james-whalen/.local/lib/python3.13/site-packages/cyclopts/cli/run.pyrunr      s7    > 6{cnn$%f-JG4=    N)__doc__pathlibr   typingr   cyclopts.clir   cyclopts.loaderr   cyclopts.parameterr   commandr   r    r   r   <module>r      sj    4    0 ( "t,	." S)>>?" "r   