Skip to content

Commit cf83236

Browse files
committed
man: mention --show-documentation/-D
Follow-up for 2671849.
1 parent d41cc40 commit cf83236

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

mkosi/initrd.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ def main() -> None:
319319

320320
if args.show_documentation:
321321
with resource_path(mkosi.resources) as r:
322-
show_docs("mkosi-initrd", DocFormat.all(), resources=r)
323-
return
322+
return show_docs("mkosi-initrd", DocFormat.all(), resources=r)
324323

325324
modulesd = Path("/usr/lib/modules") / args.kernel_version
326325
if not is_valid_modulesd(modulesd):

mkosi/resources/man/mkosi-addon.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ the running hardware can be included if a local configuration with the option
4343
`--debug-sandbox`
4444
: Run **mkosi-sandbox** with **strace**.
4545

46+
`--show-documentation`, `-D`
47+
: Show the man page for mkosi-initrd.
48+
4649
`--version`
4750
: Show package version.
4851

mkosi/resources/man/mkosi-initrd.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ initrds and Unified Kernel Images for the current running system.
6262
`--debug-sandbox`
6363
: Run **mkosi-sandbox** with **strace**.
6464

65+
`--show-documentation`, `-D`
66+
: Show the man page for mkosi-initrd.
67+
6568
`--version`
6669
: Show package version.
6770

0 commit comments

Comments
 (0)