Lines 184-189
class MirrorSelect(object):
Link Here
|
184 |
group.add_option( |
184 |
group.add_option( |
185 |
"-H", "--http", action="store_true", default=False, |
185 |
"-H", "--http", action="store_true", default=False, |
186 |
help="http only mode. Will not consider hosts of other types") |
186 |
help="http only mode. Will not consider hosts of other types") |
|
|
187 |
group.add_option( |
188 |
"-S", "--https", action="store_true", default=False, |
189 |
help="https only mode. Will not consider hosts of other types") |
187 |
group.add_option( |
190 |
group.add_option( |
188 |
"-r", "--rsync", action="store_true", default=False, |
191 |
"-r", "--rsync", action="store_true", default=False, |
189 |
help="rsync mode. Allows you to interactively select your" |
192 |
help="rsync mode. Allows you to interactively select your" |
Lines 258-265
class MirrorSelect(object):
Link Here
|
258 |
# sanity checks |
261 |
# sanity checks |
259 |
|
262 |
|
260 |
# hack: check if more than one of these is set |
263 |
# hack: check if more than one of these is set |
261 |
if options.http + options.ftp + options.rsync > 1: |
264 |
if options.http + options.https + options.ftp + options.rsync > 1: |
262 |
self.output.print_err('Choose at most one of -H, -f and -r') |
265 |
self.output.print_err('Choose at most one of -H, -S, -f and -r') |
263 |
|
266 |
|
264 |
if options.ipv4 and options.ipv6: |
267 |
if options.ipv4 and options.ipv6: |
265 |
self.output.print_err('Choose at most one of --ipv4 and --ipv6') |
268 |
self.output.print_err('Choose at most one of --ipv4 and --ipv6') |