From 3db131eadf2a090f4313d1d7439ca4a91c064bf2 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Wed, 11 Jun 2025 21:00:09 -0600 Subject: [PATCH] Fix width of wwctl image shell --help Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + internal/app/wwctl/image/shell/root.go | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0cf535a..8bbb41ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Do not let API add a node that exists - Fixed sleep/rebooting on error during GRUB boot. #1894 - Fixed IPMI VLAN configuration. #1892 +- Fixed `wwctl image shell --help` to fit properly within 80 columns. ### Changed diff --git a/internal/app/wwctl/image/shell/root.go b/internal/app/wwctl/image/shell/root.go index 6874e02f..351823b1 100644 --- a/internal/app/wwctl/image/shell/root.go +++ b/internal/app/wwctl/image/shell/root.go @@ -31,10 +31,12 @@ var ( func init() { baseCmd.PersistentFlags().StringArrayVarP(&binds, "bind", "b", []string{}, `source[:destination[:{ro|copy}]] -Bind a local path which must exist into the image. If destination is not -set, uses the same path as source. "ro" binds read-only. "copy" temporarily +Bind a local path which must exist into the image. +If destination is not set, uses the same path as +source. "ro" binds read-only. "copy" temporarily copies the file into the image.`) - baseCmd.PersistentFlags().StringVarP(&nodeName, "node", "n", "", "Create a read only view of the image for the given node") + baseCmd.PersistentFlags().StringVarP(&nodeName, "node", "n", "", `Create a read only view of the image for the given +node`) baseCmd.PersistentFlags().BoolVar(&syncUser, "syncuser", false, "Synchronize UIDs/GIDs from host to image") baseCmd.PersistentFlags().BoolVar(&build, "build", true, "(Re)build the image automatically") }