§
    ôcT	  ã                   ó:   — d dl Z d dlmZ d dlmZmZ dZd„ Zd„ ZdS )é    N)ÚArgumentParser)ÚgenerateÚvalidatez/etc/borgmatic/config.yamlc            	      ó  — t          d¬¦  «        }|                     dddd¬¦  «         |                     dd	d
t          d                     t          ¦  «        ¬¦  «         |                     dddd¬¦  «         |                     | ¦  «        S )z‘
    Given command-line arguments with which this script was invoked, parse the arguments and return
    them as an ArgumentParser instance.
    z4Generate a sample borgmatic YAML configuration file.)Údescriptionz-sz--sourceÚsource_filenamezsOptional YAML configuration file to merge into the generated configuration, useful for upgrading your configuration)ÚdestÚhelpz-dz--destinationÚdestination_filenamez0Destination YAML configuration file, default: {})r	   Údefaultr
   z--overwriteFÚ
store_truezEWhether to overwrite any existing destination file, defaults to false)r   Úactionr
   )r   Úadd_argumentÚ#DEFAULT_DESTINATION_CONFIG_FILENAMEÚformatÚ
parse_args)Ú	argumentsÚparsers     úD/usr/lib/python3/dist-packages/borgmatic/commands/generate_config.pyÚparse_argumentsr   	   sÃ   € õ
 Ð(^Ð_Ñ_Ô_€FØ
×ÒØØØð Cð	 ñ ô ð ð ×ÒØØØ#Ý3Ø?×FÒFÝ/ñ
ô 
ð ñ ô ð ð ×ÒØØØØTð	 ñ ô ð ð ×Ò˜YÑ'Ô'Ð'ó    c                  ó6  — 	 t          t          j        dd …         Ž } t          j        | j        | j        t          j        ¦   «         | j	        ¬¦  «         t          d                     | j        ¦  «        ¦  «         t          ¦   «          | j        rt          d                     | j        ¦  «        ¦  «         t          d¦  «         t          ¦   «          t          d                     | j        | j        ¦  «        ¦  «         t          ¦   «          t          d¦  «         t          d¦  «         t          ¦   «          t          d	¦  «         d S # t          t          f$ r:}t          |t          j        ¬
¦  «         t          j        d¦  «         Y d }~d S d }~ww xY w)Né   )Ú	overwritez,Generated a sample configuration file at {}.z3Merged in the contents of configuration file at {}.z To review the changes made, run:z    diff --unified {} {}zNThis includes all available configuration options with example values. The fewzHrequired options are indicated. Please edit the file to suit your needs.z<If you ever need help: https://torsion.org/borgmatic/#issues)Úfile)r   ÚsysÚargvr   Úgenerate_sample_configurationr   r   r   Úschema_filenamer   Úprintr   Ú
ValueErrorÚOSErrorÚstderrÚexit)ÚargsÚerrors     r   Úmainr'   (   sŒ  € ðÝ¥¤¨¨¨¤Ð-ˆåÔ.ØÔ ØÔ%ÝÔ$Ñ&Ô&Ø”nð		
ñ 	
ô 	
ð 	
õ 	Ð<×CÒCÀDÔD]Ñ^Ô^Ñ_Ô_Ð_Ý‰ŒˆØÔð 		ÝØE×LÒLÈTÔMaÑbÔbñô ð õ Ð4Ñ5Ô5Ð5Ý‰GŒGˆGÝØ*×1Ò1°$Ô2FÈÔHaÑbÔbñô ð õ ‰GŒGˆGÝÐ^Ñ_Ô_Ð_ÝÐXÑYÔYÐYÝ‰ŒˆÝÐLÑMÔMÐMÐMÐMøÝ�Ð ð ð ð Ýˆe�#œ*Ð%Ñ%Ô%Ð%ÝŒ�‰Œˆˆˆˆˆˆˆøøøøðøøøs   ‚E	E ÅFÅ/FÆF)	r   Úargparser   Úborgmatic.configr   r   r   r   r'   © r   r   ú<module>r+      sf   ðØ 
€
€
€
Ø #Ð #Ð #Ð #Ð #Ð #à /Ð /Ð /Ð /Ð /Ð /Ð /Ð /à&BÐ #ð(ð (ð (ð>ð ð ð ð r   