if opt in ('-X', '--exclude-group'): NODESET.exclude_group(arg) continue if opt in ('-d', '--diff'): opt_diff = True if opt in ('-1', '--single'): opt_single = True if opt in ('-r', '--ref'): opt_reference = True if opt in ('-u', '--upload'): opt_upload = True upload_filename = synctool_lib.strip_path(arg) continue if opt in ('-s', '--suffix'): opt_suffix = True upload_suffix = arg continue if opt in ('-t', '--tasks'): opt_tasks = True if opt in ('-e', '--erase-saved'): # This doesn't do anything in master, really # because it doesn't use these settings, but hey synctool_lib.ERASE_SAVED = True synctool_param.BACKUP_COPIES = False
if opt in ('-q', '--quiet'): synctool_lib.QUIET = True continue if opt == '--unix': synctool_lib.UNIX_CMD = True continue if opt == '--masterlog': synctool_lib.MASTERLOG = True continue if opt in ('-d', '--diff'): opt_diff = True action = ACTION_DIFF file = synctool_lib.strip_path(arg) if not file in SINGLE_FILES: SINGLE_FILES.append(file) continue if opt in ('-1', '--single'): opt_single = True file = synctool_lib.strip_path(arg) if not file in SINGLE_FILES: SINGLE_FILES.append(file) continue if opt in ('-t', '--task', '--tasks'): opt_tasks = True action = ACTION_RUN_TASKS continue