Prints version message when -V or --version is specified.
()
| 246 | |
| 247 | |
| 248 | def print_version_msg(): |
| 249 | """Prints version message when -V or --version is specified.""" |
| 250 | result = [] |
| 251 | result.append(f"{__title__} v{__version__}") |
| 252 | result.append(__copyright__) |
| 253 | result.append(f"This code is licensed under the {__license__} License.") |
| 254 | click.echo("\n".join(result)) |
| 255 | |
| 256 | |
| 257 | class CustomHelpCommand(click.Command): |