arch,args

This commit is contained in:
Marc Beninca 2021-10-09 14:36:12 +02:00 committed by Marc Beninca
parent 7bf3676bfd
commit 3237ea410e

View file

@ -1,6 +1,7 @@
import argparse import argparse
import os import os
import remote
ACTION = 'action' ACTION = 'action'
ARCHITECTURES = 'architectures' ARCHITECTURES = 'architectures'
@ -46,7 +47,7 @@ action to perform onto msys repository
msys remote repository's location msys remote repository's location
''') ''')
sync.add_argument(f'-{ARCHITECTURES[0]}', f'--{ARCHITECTURES}', type=str, sync.add_argument(f'-{ARCHITECTURES[0]}', f'--{ARCHITECTURES}', type=str,
nargs='+', choices=['x86_64', 'i686'], help='''\ nargs='+', choices=remote.ARCHITECTURES, help='''\
list of architectures to sync list of architectures to sync
''') ''')
sync.add_argument(f'-{SUBSYSTEMS[0]}', f'--{SUBSYSTEMS}', type=str, sync.add_argument(f'-{SUBSYSTEMS[0]}', f'--{SUBSYSTEMS}', type=str,