changeset 145:073e0faea599

Optimize help output for subcommands
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 03 Jan 2025 16:22:59 +0100
parents b39f8082ced1
children 7d8df8311e3b
files cutils/treesum.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cutils/treesum.py	Fri Jan 03 16:05:38 2025 +0100
+++ b/cutils/treesum.py	Fri Jan 03 16:22:59 2025 +0100
@@ -99,10 +99,12 @@
 
     subparsers = parser.add_subparsers(
         dest="subcommand",
+        title="Commands",
         description="This tool uses subcommands. "
                     "To see detailed help for a specific subcommand use "
                     "the -h/--help option after the subcommand name. "
-                    "A short list of valid commands are listed below:")
+                    "A short list of valid commands are listed below:",
+        metavar="COMMAND")
 
     genparser = subparsers.add_parser(
         "generate",