|
|
@ -18,6 +18,9 @@ def main(): |
|
|
parser.add_argument('--output-dir', required=True, |
|
|
parser.add_argument('--output-dir', required=True, |
|
|
help='The directory into which the results will be ' |
|
|
help='The directory into which the results will be ' |
|
|
'written (Note: will overwrite existing files)') |
|
|
'written (Note: will overwrite existing files)') |
|
|
|
|
|
parser.add_argument('--lenient', action='store_true', default=False, |
|
|
|
|
|
help='Ignore record validations and do a best effort ' |
|
|
|
|
|
'dump') |
|
|
parser.add_argument('zone', help='Zone to dump') |
|
|
parser.add_argument('zone', help='Zone to dump') |
|
|
parser.add_argument('source', nargs='+', |
|
|
parser.add_argument('source', nargs='+', |
|
|
help='Source(s) to pull data from') |
|
|
help='Source(s) to pull data from') |
|
|
@ -25,7 +28,7 @@ def main(): |
|
|
args = parser.parse_args() |
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
manager = Manager(args.config_file) |
|
|
manager = Manager(args.config_file) |
|
|
manager.dump(args.zone, args.output_dir, *args.source) |
|
|
|
|
|
|
|
|
manager.dump(args.zone, args.output_dir, args.lenient, *args.source) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
|