--kernel-version is the option that I use the most often. Having a short
option would be nice.
'-v' would another option for the option, but I think it could be confused
with --version.
def initrd_common_args(parser: argparse.ArgumentParser) -> None:
parser.add_argument(
+ "-k",
"--kernel-version",
metavar="KERNEL_VERSION",
help="Kernel version string",
# OPTIONS
-`--kernel-version=`
+`--kernel-version=`, `-k`
: Kernel version where to look for the kernel modules to include. Defaults to
the kernel version of the running system (`uname -r`).