Mercurial > hg > lxmldump
comparison lxmldump.py @ 81:4fb259e345c2
Bump copyright years.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 01 Mar 2022 13:23:37 +0200 |
parents | 0d9303f30e68 |
children | c876f8872552 |
comparison
equal
deleted
inserted
replaced
80:0d9303f30e68 | 81:4fb259e345c2 |
---|---|
1 #!/usr/bin/python3 -B | 1 #!/usr/bin/python3 -B |
2 # coding=utf-8 | 2 # coding=utf-8 |
3 ### | 3 ### |
4 ### lxmldump - Convert and dump ISO/FDIS 1951 XML file data | 4 ### lxmldump - Convert and dump ISO/FDIS 1951 XML file data |
5 ### Programmed and designed by Matti 'ccr' Hämäläinen <ccr@tnsp.org> | 5 ### Programmed and designed by Matti 'ccr' Hämäläinen <ccr@tnsp.org> |
6 ### (C) Copyright 2021 Tecnic Software productions (TNSP) | 6 ### (C) Copyright 2021-2022 Tecnic Software productions (TNSP) |
7 ### | 7 ### |
8 ### Released / distributed under 3-clause BSD license | 8 ### Released / distributed under 3-clause BSD license |
9 ### (see file "COPYING" for more information) | 9 ### (see file "COPYING" for more information) |
10 ### | 10 ### |
11 ### Python 3.7+ required! | 11 ### Python 3.7+ required! |
286 | 286 |
287 ## Argument parser subclass | 287 ## Argument parser subclass |
288 class PKKArgumentParser(argparse.ArgumentParser): | 288 class PKKArgumentParser(argparse.ArgumentParser): |
289 def print_help(self): | 289 def print_help(self): |
290 print("lxmldump - Convert and dump ISO/FDIS 1951 XML file data\n" | 290 print("lxmldump - Convert and dump ISO/FDIS 1951 XML file data\n" |
291 "(C) Copyright 2021 Matti 'ccr' Hämäläinen <ccr@tnsp.org>\n") | 291 "(C) Copyright 2021-2022 Matti 'ccr' Hämäläinen <ccr@tnsp.org>\n") |
292 | |
292 super().print_help() | 293 super().print_help() |
293 | 294 |
294 print("\nAvailable output modes:") | 295 print("\nAvailable output modes:") |
295 print(" " + ", ".join(pkk_modes_list.values())) | 296 print(" " + ", ".join(pkk_modes_list.values())) |
296 | 297 |