From: Darkshredder Date: Mon, 29 Mar 2021 08:46:41 +0000 (+0530) Subject: Nominatim/cli.py rebase fixes X-Git-Tag: v3.7.0~8^2~1 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/b7d6ae93e3b168ba1577e271ffcf5a66ef6c24c5 Nominatim/cli.py rebase fixes --- diff --git a/nominatim/cli.py b/nominatim/cli.py index 5c2c8dfa..e162d1a6 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -112,30 +112,6 @@ class CommandlineParser: # pylint: disable=C0111 # Using non-top-level imports to make pyosmium optional for replication only. # pylint: disable=E0012,C0415 - - -class SetupSpecialPhrases: - """\ - Maintain special phrases. - """ - - @staticmethod - def add_args(parser): - group = parser.add_argument_group('Input arguments') - group.add_argument('--from-wiki', action='store_true', - help='Pull special phrases from the OSM wiki.') - group = parser.add_argument_group('Output arguments') - group.add_argument('-o', '--output', default='-', - help=("File to write the preprocessed phrases to." - "If omitted, it will be written to stdout.")) - - @staticmethod - def run(args): - if args.output != '-': - raise NotImplementedError('Only output to stdout is currently implemented.') - return run_legacy_script('specialphrases.php', '--wiki-import', nominatim_env=args) - - class UpdateAddData: """\ Add additional data from a file or an online source.