]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove unnecessary nested group in CLI import command
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 16 Feb 2024 10:32:50 +0000 (11:32 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 16 Feb 2024 10:32:50 +0000 (11:32 +0100)
nominatim/clicmd/setup.py

index 67ca5bb10200aa1d095212898122569009e23d49..38a5a5b520470b0deff8a69365073f1830f93eb0 100644 (file)
@@ -39,8 +39,7 @@ class SetupAll:
     """
 
     def add_args(self, parser: argparse.ArgumentParser) -> None:
-        group_name = parser.add_argument_group('Required arguments')
-        group1 = group_name.add_argument_group()
+        group1 = parser.add_argument_group('Required arguments')
         group1.add_argument('--osm-file', metavar='FILE', action='append',
                            help='OSM file to be imported'
                                 ' (repeat for importing multiple files)',