Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/treesum.py @ 191:1b8bc876146a
Make "--debug" a global argument in treeview
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 16 Jan 2025 11:31:37 +0100 |
| parents | 7e0c25a31757 |
| children | fb36e71f6ba8 |
line wrap: on
line diff
--- 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")
