From 0f0815d2689e5764882ca0f95129072b9a2949e2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 29 Jan 2025 16:47:54 +0100 Subject: [PATCH] main: tweak the help of `manifest` and `build` This commit tweaks the help output for the manifest and build commands to make clear that only the image type is a required argument but the rest can be overriden via extra flags. Thanks to Achilleas for noticing. --- cmd/image-builder/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/image-builder/main.go b/cmd/image-builder/main.go index 05bce27..097831d 100644 --- a/cmd/image-builder/main.go +++ b/cmd/image-builder/main.go @@ -235,7 +235,7 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support. manifestCmd := &cobra.Command{ Use: "manifest ", - Short: "Build manifest for the given distro/image-type, e.g. centos-9 qcow2", + Short: "Build manifest for the given image-type, e.g. qcow2 (tip: combine with --distro, --arch)", RunE: cmdManifest, SilenceUsage: true, Args: cobra.ExactArgs(1), @@ -253,7 +253,7 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support. buildCmd := &cobra.Command{ Use: "build ", - Short: "Build the given distro/image-type, e.g. centos-9 qcow2", + Short: "Build the given image-type, e.g. qcow2 (tip: combine with --distro, --arch)", RunE: cmdBuild, SilenceUsage: true, Args: cobra.ExactArgs(1),