# HG changeset patch # User Franz Glasner # Date 1743526577 -7200 # Node ID 3f4840eeb0f4ecf2f63ad26b8286164bc59b99b5 # Parent d47965f97abb42df593998515700eebb5f7999aa treesum: optimize help output: do not print "-h/--help" for "patterns" and "help" diff -r d47965f97abb -r 3f4840eeb0f4 cutils/treesum.py --- a/cutils/treesum.py Tue Apr 01 18:49:27 2025 +0200 +++ b/cutils/treesum.py Tue Apr 01 18:56:17 2025 +0200 @@ -290,14 +290,16 @@ hparser = subparsers.add_parser( "help", help="Show this help message or a subcommand's help and exit", - description="Show this help message or a subcommand's help and exit.") + description="Show this help message or a subcommand's help and exit.", + add_help=False) hparser.add_argument("help_command", nargs='?', metavar="COMMAND") patparser = subparsers.add_parser( "patterns", help="Show the help for PATTERNs and exit", description=fnmatch.HELP_DESCRIPTION, - formatter_class=argparse.RawDescriptionHelpFormatter) + formatter_class=argparse.RawDescriptionHelpFormatter, + add_help=False) vparser = subparsers.add_parser( "version",