diff mbox series

[6/6] wic/help: Add missing option values and rewrap lines

Message ID 20260702044425.846351-7-gael.portay+rtone@gmail.com
State New
Headers show
Series wic/help: Refresh wic create help and usage strings | expand

Commit Message

Gaël PORTAY July 2, 2026, 4:44 a.m. UTC
Some options take values, but those values are missing from the usage
and help strings.

	$ wic create
	usage: wic create [-h] [-o OUTDIR] [-w WORKDIR] [-e IMAGE_NAME] [-r ROOTFS_DIR] [-b BOOTIMG_DIR] [-k KERNEL_DIR] [-n NATIVE_SYSROOT] [-s] [-f] [-c {gzip,bzip2,xz}] [-m] [--no-fstab-update]
	                  [-v VARS_DIR] [-D] [-i IMAGER] [--extra-space EXTRA_SPACE] [--sector-size SECTOR_SIZE]
	                  wks_file

This adds and capitalizes the missing option values, and rewraps lines
to 80-characters.

Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
---
 src/wic/help.py | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/src/wic/help.py b/src/wic/help.py
index 05e838a..837695b 100644
--- a/src/wic/help.py
+++ b/src/wic/help.py
@@ -116,11 +116,12 @@  wic_create_usage = """
  Create a new OpenEmbedded image
 
  usage: wic create <wks file or image name> [-o, --outdir <DIRNAME>]
-            [-e, --image-name] [-s, --skip-build-check] [-D, --debug]
-            [-r, --rootfs-dir] [-b, --bootimg-dir]
-            [-k, --kernel-dir] [-n, --native-sysroot] [--sector-size <bytes>] [-f, --build-rootfs]
-            [-c, --compress-with] [-m, --bmap] [--no-fstab-update]
-            [-w, --workdir]
+            [-e, --image-name <IMGNAME>] [-s, --skip-build-check] [-D, --debug]
+            [-r, --rootfs-dir <DIRNAME>] [-b, --bootimg-dir <DIRNAME>]
+            [-k, --kernel-dir <DIRNAME>] [-n, --native-sysroot <DIRNAME>]
+            [--sector-size <BYTES>] [-f, --build-rootfs]
+            [-c, --compress-with gzip|bzip2|xz] [-m, --bmap]
+            [-w, --workdir <DIRNAME>]
 
  This command creates an OpenEmbedded image based on the 'OE kickstart
  commands' found in the <wks file>.
@@ -138,11 +139,12 @@  NAME
 
 SYNOPSIS
     wic create <wks file or image name> [-o, --outdir <DIRNAME>]
-        [-e, --image-name] [-s, --skip-build-check] [-D, --debug]
-        [-r, --rootfs-dir] [-b, --bootimg-dir]
-        [-k, --kernel-dir] [-n, --native-sysroot] [--sector-size <bytes>] [-f, --build-rootfs]
-        [-c, --compress-with] [-m, --bmap] [--no-fstab-update]
-        [-w, --workdir]
+        [-e, --image-name <IMGNAME>] [-s, --skip-build-check] [-D, --debug]
+        [-r, --rootfs-dir <DIRNAME>] [-b, --bootimg-dir <DIRNAME>]
+        [-k, --kernel-dir <DIRNAME>] [-n, --native-sysroot <DIRNAME>]
+        [--sector-size <BYTES>] [-f, --build-rootfs]
+        [-c, --compress-with gzip|bzip2|xz] [-m, --bmap] [--no-fstab-update]
+        [-w, --workdir <DIRNAME>]
 
 DESCRIPTION
     This command creates an OpenEmbedded image based on the 'OE