]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
spit: Make --version and --help output consistent.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Feb 2026 20:24:35 +0000 (21:24 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Feb 2026 20:24:35 +0000 (21:24 +0100)
* gettext-tools/src/spit.py.in (main): Remove extra newline at the beginning
and the end of the --version and --help output.

gettext-tools/src/spit.py.in

index c584ee38607069f67a60a5f3a145b9fd967940b9..bd47107fede3ddb9e00ff16f43349a7e14592f53 100644 (file)
@@ -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 <https://gnu.org/licenses/gpl.html>
 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 <https://savannah.gnu.org/projects/gettext>
-or by email to <bug-gettext@gnu.org>.
-''')
+or by email to <bug-gettext@gnu.org>.''')
         sys.exit(0)
 
     # Report unhandled arguments.