# HG changeset patch # User Franz Glasner # Date 1737023497 -3600 # Node ID 1b8bc876146ab2184a5771cf1aae3e5f0b3aedf8 # Parent 7e0c25a317570803bc5ba8612a4dc2534f9980ba Make "--debug" a global argument in treeview diff -r 7e0c25a31757 -r 1b8bc876146a cutils/treesum.py --- a/cutils/treesum.py Thu Jan 16 11:29:36 2025 +0100 +++ b/cutils/treesum.py Thu Jan 16 11:31:37 2025 +0100 @@ -63,9 +63,6 @@ help="Put given comment COMMENT into the output as \"COMMENT\". " "Can be given more than once.") gp.add_argument( - "--debug", action="store_true", - help="Activate debug logging to stderr") - gp.add_argument( "--follow-directory-symlinks", "-l", action="store_true", dest="follow_directory_symlinks", help="Follow symbolic links to directories when walking a " @@ -130,9 +127,6 @@ def _populate_info_arguments(ip): ip.add_argument( - "--debug", action="store_true", - help="Activate debug logging to stderr") - ip.add_argument( "--last", action="store_true", dest="print_only_last_block", help="Print only the last block of every given input file") ip.add_argument( @@ -149,6 +143,9 @@ # gparser = parser.add_argument_group(title="Global Options") gparser.add_argument( + "--debug", action="store_true", + help="Activate debug logging to stderr") + gparser.add_argument( "-v", "--version", action="version", version="%s (rv:%s)" % (__version__, __revision__), help="Show program's version number and exit")