Mercurial > hgrepos > Python > apps > py-cutils
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 348:539e2facbb28 | 349:34874c45af1a |
|---|---|
| 313 | 313 |
| 314 if opts.subcommand == "version": | 314 if opts.subcommand == "version": |
| 315 print("%s (rv:%s)" % (__version__, __revision__), | 315 print("%s (rv:%s)" % (__version__, __revision__), |
| 316 file=sys.stdout) | 316 file=sys.stdout) |
| 317 return 0 | 317 return 0 |
| 318 if opts.subcommand == "help": | 318 elif opts.subcommand == "help": |
| 319 if not opts.help_command: | 319 if not opts.help_command: |
| 320 parser.print_help() | 320 parser.print_help() |
| 321 else: | 321 else: |
| 322 if opts.help_command == "generate": | 322 if opts.help_command == "generate": |
| 323 genparser.print_help() | 323 genparser.print_help() |
