]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove Additional Configuration Options argparse group
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 2 Apr 2023 19:10:15 +0000 (21:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Apr 2023 18:31:50 +0000 (20:31 +0200)
Let's move these settings to the top level group along with the other
CLI arguments that aren't really config.

mkosi/__init__.py

index 9f46d946e95023f921286f6b63904ba7f6765e0a..f8b717a938235b728c69f56ad6e47172ea3dd79a 100644 (file)
@@ -1393,6 +1393,25 @@ def create_parser() -> ArgumentParserMkosi:
         version="%(prog)s " + __version__,
         help=argparse.SUPPRESS,
     )
+    parser.add_argument(
+        "-C", "--directory",
+        help="Change to specified directory before doing anything",
+        type=Path,
+        metavar="PATH",
+    )
+    parser.add_argument(
+        "--config",
+        dest="config_path",
+        help="Read configuration data from file",
+        type=Path,
+        metavar="PATH",
+    )
+    parser.add_argument(
+        "--debug",
+        action=CommaDelimitedListAction,
+        default=[],
+        help="Turn on debugging output",
+    )
 
     group = parser.add_argument_group("Distribution options")
     group.add_argument("-d", "--distribution", choices=Distribution.__members__, help="Distribution to install")
@@ -1839,26 +1858,6 @@ def create_parser() -> ArgumentParserMkosi:
         help="Set ACLs on generated directories to permit the user running mkosi to remove them",
     )
 
-    group = parser.add_argument_group("Additional configuration options")
-    group.add_argument(
-        "-C", "--directory",
-        help="Change to specified directory before doing anything",
-        type=Path,
-        metavar="PATH",
-    )
-    group.add_argument(
-        "--config",
-        dest="config_path",
-        help="Read configuration data from file",
-        type=Path,
-        metavar="PATH",
-    )
-    group.add_argument(
-        "--debug",
-        action=CommaDelimitedListAction,
-        default=[],
-        help="Turn on debugging output",
-    )
     try:
         import argcomplete