Skip to contentSkip to conversation

wic: partition.py: fix help string

PATCH New Trevor Woerner 1 participant 1 message Sep 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wic: partition.py: fix help string

The help suggests invoking 'wic help source-plugins' for information on how to add a new plugin, this results in:

usage: wic help [-h] {plugins,overview,kickstart,create,ls,cp,rm,write,list} ...
wic help: error: argument help_topic: invalid choice: 'source-plugins' (choose from 'plugins', 'overview', 'kickstart', 'create', 'ls', 'cp', 'rm', 'write', 'list')

The proper command is 'wic help plugins'.

---
 scripts/lib/wic/partition.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/wic/partition.py +1 -1
index 0c9b1a5b9620..531ac6eb3d4a 100644
@@ -178,7 +178,7 @@ class Partition():
         if self.source not in plugins:
             raise WicError("The '%s' --source specified for %s doesn't exist.\n\t"
                            "See 'wic list source-plugins' for a list of available"
-                           " --sources.\n\tSee 'wic help source-plugins' for "
+                           " --sources.\n\tSee 'wic help plugins' for "
                            "details on adding a new source plugin." %
                            (self.source, self.mountpoint))
 
Signature · 1 line
2.44.0.501.g19981daefd7c