mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
clean up version screen/copyright notice
This commit is contained in:
parent
36f646c988
commit
c626c4cf76
1 changed files with 10 additions and 5 deletions
|
@ -36,17 +36,22 @@ def preconfig_diagnostic(_):
|
||||||
|
|
||||||
|
|
||||||
def preconfig_version(_):
|
def preconfig_version(_):
|
||||||
|
import textwrap
|
||||||
from jrnl import __title__
|
from jrnl import __title__
|
||||||
from jrnl import __version__
|
from jrnl import __version__
|
||||||
|
|
||||||
version_str = f"""{__title__} version {__version__}
|
output = f"""
|
||||||
|
{__title__} {__version__}
|
||||||
|
|
||||||
Copyright © 2012-2022 jrnl contributors
|
Copyright © 2012-2022 jrnl contributors
|
||||||
|
|
||||||
This is free software, and you are welcome to redistribute it under certain
|
This is free software, and you are welcome to redistribute it under certain
|
||||||
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html"""
|
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
"""
|
||||||
|
|
||||||
print(version_str)
|
output = textwrap.dedent(output).strip()
|
||||||
|
|
||||||
|
print(output)
|
||||||
|
|
||||||
|
|
||||||
def postconfig_list(config, **kwargs):
|
def postconfig_list(config, **kwargs):
|
||||||
|
|
Loading…
Add table
Reference in a new issue