[fix] argument validation in OSM training data script
This commit is contained in:
@@ -973,7 +973,7 @@ if __name__ == '__main__':
|
||||
|
||||
if args.address_file and not args.format_only and not args.limited_addresses:
|
||||
build_address_training_data(language_rtree, args.address_file, args.out_dir)
|
||||
elif args.address_file and osm_rtree is None:
|
||||
elif args.address_file and not args.limited_addresses and osm_rtree is None:
|
||||
parser.error('--rtree-dir required for formatted addresses')
|
||||
|
||||
if args.address_file and args.format_only:
|
||||
|
||||
Reference in New Issue
Block a user