[fix] argument validation in OSM training data script

This commit is contained in:
Al
2015-11-24 10:59:16 -05:00
parent de9f3120c8
commit 94039f98ad

View File

@@ -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: