]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Move --auto-bump under Content section
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 2 Apr 2023 19:06:07 +0000 (21:06 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Apr 2023 18:31:50 +0000 (20:31 +0200)
Let's collocate --auto-bump with --image-version which it is closely
related to.

mkosi.md
mkosi/__init__.py

index bbe8fd1622ab4b5c2f0fd9ed651e8543851e40d0..f499ac8c031076c4451b0ad8d112fa45eb26387b 100644 (file)
--- a/mkosi.md
+++ b/mkosi.md
@@ -391,7 +391,7 @@ a boolean argument: either "1", "yes", or "true" to enable, or "0",
   recommended to specify a series of dot separated components. The
   version may also be configured in a file `mkosi.version` in which
   case it may be conveniently managed via the `bump` verb or the
-  `--auto-bump` switch. When specified the image version is included
+  `--auto-bump` option. When specified the image version is included
   in the default output file name, i.e. instead of `image.raw` the
   default will be `image_0.1.raw` for version `0.1` of the image, and
   similar. The version is also passed via the `$IMAGE_VERSION` to any
@@ -399,6 +399,14 @@ a boolean argument: either "1", "yes", or "true" to enable, or "0",
   `/etc/os-release` or similar, in particular the `IMAGE_VERSION=`
   field of it).
 
+`AutoBump=`, `--auto-bump=`, `-B`
+
+: If specified, after each successful build the the version is bumped
+  in a fashion equivalent to the `bump` verb, in preparation for the
+  next build. This is useful for simple, linear version management:
+  each build in a series will have a version number one higher then
+  the previous one.
+
 `ImageId=`, `--image-id=`
 
 : Configure the image identifier. This accepts a freeform string that
@@ -889,14 +897,6 @@ Those settings cannot be configured in the configuration files.
 
 : Show brief usage information.
 
-`--auto-bump`, `-B`
-
-: If specified, after each successful build the the version is bumped
-  in a fashion equivalent to the `bump` verb, in preparation for the
-  next build. This is useful for simple, linear version management:
-  each build in a series will have a version number one higher then
-  the previous one.
-
 ## Supported distributions
 
 Images may be created containing installations of the
index 4a864347ea1bbcf0bb3177684dfa0baca855cec6..9f46d946e95023f921286f6b63904ba7f6765e0a 100644 (file)
@@ -1530,6 +1530,12 @@ def create_parser() -> ArgumentParserMkosi:
     group.add_argument("--hostname", help="Set hostname")
     group.add_argument("--image-version", help="Set version for image")
     group.add_argument("--image-id", help="Set ID for image")
+    group.add_argument(
+        "-B", "--auto-bump",
+        metavar="BOOL",
+        action=BooleanAction,
+        help="Automatically bump image version after building",
+    )
     group.add_argument(
         "--tar-strip-selinux-context",
         metavar="BOOL",
@@ -1847,13 +1853,6 @@ def create_parser() -> ArgumentParserMkosi:
         type=Path,
         metavar="PATH",
     )
-    group.add_argument(
-        "-B",
-        "--auto-bump",
-        metavar="BOOL",
-        action=BooleanAction,
-        help="Automatically bump image version after building",
-    )
     group.add_argument(
         "--debug",
         action=CommaDelimitedListAction,