From b0a6b4b91856e5ea1bf4c05adfc8109af3a94222 Mon Sep 17 00:00:00 2001 From: Roland Lutz Date: Sat, 4 Mar 2017 21:11:24 +0100 Subject: [PATCH] python: Make `xorn extract' help output one string literal --- src/command/extract.py | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/command/extract.py b/src/command/extract.py index 4268d6c9f..da79aadcd 100644 --- a/src/command/extract.py +++ b/src/command/extract.py @@ -41,21 +41,19 @@ def main(): elif option == '-l' or option == '--list': list_embedded = True elif option == '--help': - sys.stdout.write(_( -"Usage: %s [OPTION]... SCHEMATIC [SYMBOL|PICTURE]...\n") - % xorn.command.program_name) - sys.stdout.write(_( -"Extract objects embedded in a schematic into a separate file\n")) - sys.stdout.write("\n") - sys.stdout.write(_( -" -a, --all extract all embedded objects\n" -" -l, --list list embedded object names\n" -" --help give this help\n" -" --version display version number\n")) - sys.stdout.write("\n") - sys.stdout.write(_("Report %s bugs to %s\n") - % (xorn.config.PACKAGE_NAME, - xorn.config.PACKAGE_BUGREPORT)) + sys.stdout.write(_("""\ +Usage: %s [OPTION]... SCHEMATIC [SYMBOL|PICTURE]... +Extract objects embedded in a schematic into a separate file + + -a, --all extract all embedded objects + -l, --list list embedded object names + --help give this help + --version display version number + +Report %s bugs to %s +""") % (xorn.command.program_name, + xorn.config.PACKAGE_NAME, + xorn.config.PACKAGE_BUGREPORT)) sys.exit(0) elif option == '--version': xorn.command.core_version() -- 2.11.4.GIT