Skip to content

Commit

Permalink
docs: Disable "version" option for subcommands
Browse files Browse the repository at this point in the history
Subcommands don't have their own versions, so disable the "version"
option.

Signed-off-by: Yihuang Yu <[email protected]>
  • Loading branch information
PaulYuuu committed May 17, 2024
1 parent 3e0bb1e commit 867b8c8
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 59 deletions.
6 changes: 1 addition & 5 deletions docs/src/man/bootc-edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bootc-edit - Apply full changes to the host specification
# SYNOPSIS

**bootc edit** \[**-f**\|**\--filename**\] \[**\--quiet**\]
\[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
\[**-h**\|**\--help**\]

# DESCRIPTION

Expand Down Expand Up @@ -34,10 +34,6 @@ Only changes to the \`spec\` section are honored.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
5 changes: 0 additions & 5 deletions docs/src/man/bootc-install-print-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ processes using \`install to-filesystem\` that want to honor e.g.
# SYNOPSIS

**bootc install print-configuration** \[**-h**\|**\--help**\]
\[**-V**\|**\--version**\]

# DESCRIPTION

Expand All @@ -25,10 +24,6 @@ string-valued filesystem name suitable for passing to \`mkfs.\$type\`.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
7 changes: 1 addition & 6 deletions docs/src/man/bootc-install-to-disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ bootc-install-to-disk - Install to the target block device
\[**\--enforce-container-sigpolicy**\] \[**\--target-ostree-remote**\]
\[**\--skip-fetch-check**\] \[**\--disable-selinux**\] \[**\--karg**\]
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
\[**\--via-loopback**\] \[**-h**\|**\--help**\]
\[**-V**\|**\--version**\] \<*DEVICE*\>
\[**\--via-loopback**\] \[**-h**\|**\--help**\] \<*DEVICE*\>

# DESCRIPTION

Expand Down Expand Up @@ -128,10 +127,6 @@ firmware will be skipped

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

\<*DEVICE*\>

: Target block device for installation. The entire device will be
Expand Down
6 changes: 1 addition & 5 deletions docs/src/man/bootc-install-to-existing-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ root filesystem
\[**\--disable-selinux**\] \[**\--karg**\]
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
\[**\--acknowledge-destructive**\] \[**-h**\|**\--help**\]
\[**-V**\|**\--version**\] \[*ROOT_PATH*\]
\[*ROOT_PATH*\]

# DESCRIPTION

Expand Down Expand Up @@ -117,10 +117,6 @@ firmware will be skipped

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

\[*ROOT_PATH*\] \[default: /target\]

: Path to the mounted root; its expected to invoke podman with \`-v
Expand Down
6 changes: 1 addition & 5 deletions docs/src/man/bootc-install-to-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bootc-install-to-filesystem - Install to the target filesystem
\[**\--target-ostree-remote**\] \[**\--skip-fetch-check**\]
\[**\--disable-selinux**\] \[**\--karg**\]
\[**\--root-ssh-authorized-keys**\] \[**\--generic-image**\]
\[**-h**\|**\--help**\] \[**-V**\|**\--version**\] \<*ROOT_PATH*\>
\[**-h**\|**\--help**\] \<*ROOT_PATH*\>

# DESCRIPTION

Expand Down Expand Up @@ -140,10 +140,6 @@ firmware will be skipped

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

\<*ROOT_PATH*\>

: Path to the mounted root filesystem.
Expand Down
7 changes: 1 addition & 6 deletions docs/src/man/bootc-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ bootc-install - Install the running container to a target

# SYNOPSIS

**bootc install** \[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
\<*subcommands*\>
**bootc install** \[**-h**\|**\--help**\] \<*subcommands*\>

# DESCRIPTION

Expand Down Expand Up @@ -35,10 +34,6 @@ includes other setup and metadata.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# SUBCOMMANDS

bootc-install-to-disk(8)
Expand Down
6 changes: 1 addition & 5 deletions docs/src/man/bootc-rollback.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ queued upgrade) then it will be discarded

# SYNOPSIS

**bootc rollback** \[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
**bootc rollback** \[**-h**\|**\--help**\]

# DESCRIPTION

Expand All @@ -32,10 +32,6 @@ rollback invocation.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
6 changes: 1 addition & 5 deletions docs/src/man/bootc-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bootc-status - Display status
# SYNOPSIS

**bootc status** \[**\--json**\] \[**\--booted**\]
\[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
\[**-h**\|**\--help**\]

# DESCRIPTION

Expand All @@ -31,10 +31,6 @@ The exact API format is not currently declared stable.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
7 changes: 1 addition & 6 deletions docs/src/man/bootc-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ bootc-switch - Target a new container image reference to boot

**bootc switch** \[**\--quiet**\] \[**\--transport**\]
\[**\--enforce-container-sigpolicy**\] \[**\--ostree-remote**\]
\[**\--retain**\] \[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
\<*TARGET*\>
\[**\--retain**\] \[**-h**\|**\--help**\] \<*TARGET*\>

# DESCRIPTION

Expand Down Expand Up @@ -55,10 +54,6 @@ includes a default policy which requires signatures.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

\<*TARGET*\>

: Target image to use for the next boot
Expand Down
6 changes: 1 addition & 5 deletions docs/src/man/bootc-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bootc-upgrade - Download and queue an updated container image to apply
# SYNOPSIS

**bootc upgrade** \[**\--quiet**\] \[**\--check**\] \[**\--apply**\]
\[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
\[**-h**\|**\--help**\]

# DESCRIPTION

Expand Down Expand Up @@ -50,10 +50,6 @@ userspace-only restart.

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
6 changes: 1 addition & 5 deletions docs/src/man/bootc-usr-overlay.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ will be discarded on reboot

# SYNOPSIS

**bootc usr-overlay** \[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
**bootc usr-overlay** \[**-h**\|**\--help**\]

# DESCRIPTION

Expand Down Expand Up @@ -37,10 +37,6 @@ unmount\".

: Print help (see a summary with -h)

**-V**, **\--version**

: Print version

# VERSION

v0.1.11
3 changes: 2 additions & 1 deletion lib/src/docgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ fn generate_one(directory: &Utf8Path, cmd: Command) -> Result<()> {
.name(subname)
.alias(subname)
.bin_name(bin_name)
.version(version);
.version(version)
.disable_version_flag(true);
generate_one(directory, subcmd.clone().name(subname).version(version))?;
}
Ok(())
Expand Down

0 comments on commit 867b8c8

Please sign in to comment.