File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,17 @@ def main(args):
71
71
help = 'Limit mirroring to a subset of the configured sources. '
72
72
'Supports shell-style wildcards to match multiple sources per argument. '
73
73
'All sources must be public.' )
74
+ parser .add_argument ('--mirror' ,
75
+ action = 'store_true' ,
76
+ help = 'Mirror files in the specified catalog and sources' )
74
77
parser .add_argument ('--no-wait' ,
75
78
action = 'store_false' ,
76
79
dest = 'wait' ,
77
80
help = 'Do not wait for queues to empty before exiting script.' )
78
81
args = parser .parse_args (args )
79
82
assert config .enable_mirroring , R ('Mirroring is not enabled' )
80
- mirror_catalog (args .catalog , set (args .sources ), args .wait )
83
+ if args .mirror :
84
+ mirror_catalog (args .catalog , set (args .sources ), args .wait )
81
85
82
86
83
87
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments