
    dfV                         d dl mZ ddlmZmZ ddlmZ ddlmZ ej                  ej                  gZd Z	e
dk(  r e	        yy)	    )ArgumentParser   )AbortInvalid)make_get)make_projectc                     t        d      } | j                  d       | j                  dd      }t        D ]
  } ||        | j	                         }|j
                  r	 |j                  |       y| j                          y# t        $ r$}t        d	j                  |             Y d}~yd}~wt        $ r4}t        d	j                  |             | j                          Y d}~yd}~wt        $ r t        d
       Y yw xY w)a  
        Main entrypoint.

        .. code-block:: console

            usage: python -m make [-h] [--dry-run] conf_type source [target]

            positional arguments:
            conf_type   configuration type
            source      source dir
            target      target dir

            optional arguments:
            -h, --help  show this help message and exit
            --dry-run   test run
    T)add_helpN)funcCommandsz.Additional help for commands: {command} --help)titledescription)argsz{}zAborted by user)r   set_defaultsadd_subparsersSetupFunctions
parse_argsr   r   printformatr   print_usageKeyboardInterrupt
print_help)global_parser
subparserssetupr   errors        F/home/api-vastappli/venv/lib/python3.12/site-packages/make/__main__.pymainr   
   s    $ #D1MD)--&V . J   j ##%Dyy	%II4I  	  "  	&$++e$%% 	($++e$%%%''  	%#$	%s*   "B 	DB..D:*C))DD__main__N)argparser   errorsr   r   r   r   r   r   r   __name__     r   <module>r%      s?    # "  &$$hnn5(#V zF r$   