Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/treesum.py @ 349:34874c45af1a
treesum: preliminary command handling: use always "elif"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Apr 2025 19:17:51 +0200 |
| parents | 539e2facbb28 |
| children | 3fa1b95d9498 |
line wrap: on
line diff
--- a/cutils/treesum.py Tue Apr 01 18:59:32 2025 +0200 +++ b/cutils/treesum.py Tue Apr 01 19:17:51 2025 +0200 @@ -315,7 +315,7 @@ print("%s (rv:%s)" % (__version__, __revision__), file=sys.stdout) return 0 - if opts.subcommand == "help": + elif opts.subcommand == "help": if not opts.help_command: parser.print_help() else:
