From: Bruno Haible Date: Tue, 3 Feb 2026 20:24:35 +0000 (+0100) Subject: spit: Make --version and --help output consistent. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b280521b9c869a85178630837cfb8007daf3f3e1;p=thirdparty%2Fgettext.git spit: Make --version and --help output consistent. * gettext-tools/src/spit.py.in (main): Remove extra newline at the beginning and the end of the --version and --help output. --- diff --git a/gettext-tools/src/spit.py.in b/gettext-tools/src/spit.py.in index c584ee386..bd47107fe 100644 --- a/gettext-tools/src/spit.py.in +++ b/gettext-tools/src/spit.py.in @@ -671,20 +671,19 @@ def main(): # Handle --version, ignoring all other options. if cmdargs.version != None: - print(''' -spit (GNU gettext-tools) @VERSION@ + print( +'''spit (GNU gettext-tools) @VERSION@ Copyright (C) 2025-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. -Written by Bruno Haible. -''') +Written by Bruno Haible.''') sys.exit(0) # Handle --help, ignoring all other options. if cmdargs.help != None: - print(''' -Usage: spit [OPTION...] + print( +'''Usage: spit [OPTION...] Passes standard input to a Large Language Model (LLM) instance and prints the response. @@ -710,8 +709,7 @@ Informative output: -V, --version Output version information and exit. Report bugs in the bug tracker at -or by email to . -''') +or by email to .''') sys.exit(0) # Report unhandled arguments.