From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/
Date: Wed, 9 Aug 2017 22:35:13 +0000 (UTC) [thread overview]
Message-ID: <1502317726.477dbfbb5e308ddcfc8b16513fe2183f618d8a23.monsieurp@gentoo> (raw)
commit: 477dbfbb5e308ddcfc8b16513fe2183f618d8a23
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 9 22:28:46 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Aug 9 22:28:46 2017 +0000
URL: https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=477dbfbb
convert usage to a multi line string
src/py/xml-rewrite-2.py | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
index 46b4bfd..a6b88ee 100755
--- a/src/py/xml-rewrite-2.py
+++ b/src/py/xml-rewrite-2.py
@@ -204,21 +204,20 @@ class SaxRewriter(XMLGenerator, StreamRewriterBase):
def main():
- usage = "Copyright 2004,2006,2007 Gentoo Foundation\n"
- usage += "Distributed under the terms of the GNU General Public Lincense v2\n"
- usage += "Please contact the Gentoo Java Team <java@gentoo.org> with problems.\n"
- usage += "\n"
- usage += "Usage:\n"
- usage += " xml-rewrite.py [-f file] --delete [-g] -e tag [-e tag] -a attribute [-a attribute] [-i index]\n"
- usage += " xml-rewrite.py [-f file] --change [-g] -e tag [-e tag] -a attribute -v value [-a attribute -v value] \\\n"
- usage += " [--source-element tag] [--source-attribute attribute --source-value value] \\\n"
- usage += " [--target-element tag] [--target-attribute attribute --target-value value] [-i index]\n"
- usage += "Or:\n"
- usage += " xml-rewrite.py [-f file] -g\n"
- usage += "\n"
- usage += "If the -f parameter is not utilized, the script will read and\n"
- usage += "write to stdin and stdout respectively. The use of quotes on\n"
- usage += "parameters will break the script.\n"
+ usage = """Copyright 2004, 2006, 2007, 2017 Gentoo Foundation
+Distributed under the terms of the GNU General Public Lincense v2
+Please contact the Gentoo Java Team <java@gentoo.org> with problems.
+Usage:
+ xml-rewrite.py [-f file] --delete [-g] -e tag [-e tag] -a attribute [-a attribute] [-i index]
+ xml-rewrite.py [-f file] --change [-g] -e tag [-e tag] -a attribute -v value [-a attribute -v value]
+ [--source-element tag] [--source-attribute attribute --source-value value]
+ [--target-element tag] [--target-attribute attribute --target-value value] [-i index]
+Or:
+ xml-rewrite.py [-f file] -g
+
+If the -f parameter is not utilized, the script will read and
+write to stdin and stdout respectively. The use of quotes on
+parameters will break the script."""
def error(message):
print("ERROR: " + message)
next reply other threads:[~2017-08-09 22:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-09 22:35 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-19 17:09 [gentoo-commits] proj/javatoolkit:master commit in: src/py/ Miroslav Šulc
2020-12-15 10:21 Miroslav Šulc
2020-07-15 20:15 Patrice Clement
2019-10-29 21:21 Miroslav Šulc
2019-10-29 20:54 Miroslav Šulc
2017-08-13 22:15 Patrice Clement
2017-08-13 21:14 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-12 8:50 Patrice Clement
2017-08-11 13:12 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1502317726.477dbfbb5e308ddcfc8b16513fe2183f618d8a23.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox