summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro Knauß <hefee@debian.org>2019-06-25 11:51:44 +0200
committerSandro Knauß <hefee@debian.org>2019-06-25 11:59:00 +0200
commitf41a3ad6cfce76a553541b16f9a8535daf41ca13 (patch)
tree91ecc6d854ea0cd4d06390c9461fab769865bafe
parent0fd44e363417e2fae3bf2392e0e7321cf2f6af60 (diff)
rename --modify -> --fix.hefee/feature/15403-unify-po-headers
-rwxr-xr-xwiki/src/contribute/l10n_tricks/lint_po8
1 files changed, 4 insertions, 4 deletions
diff --git a/wiki/src/contribute/l10n_tricks/lint_po b/wiki/src/contribute/l10n_tricks/lint_po
index db16e02..1e8c24d 100755
--- a/wiki/src/contribute/l10n_tricks/lint_po
+++ b/wiki/src/contribute/l10n_tricks/lint_po
@@ -6,7 +6,7 @@ Usage:
./lint_po --help
Default is check mode where the error are listed but not fixed.
-With --modify the files get changed and unified.
+With --fix the files get changed and unified.
Run for all po files in the working directory (including subdirs):
./lint_po
@@ -225,8 +225,8 @@ def unify_po_file(fname: str) -> None:
def main(logger) -> None:
parser = argparse.ArgumentParser(description='Unify PO files')
- parser.add_argument('--modify', dest='modify', action='store_true',
- help='Modify the PO headers, otherwise only check is done.')
+ parser.add_argument('--fix', dest='fix', action='store_true',
+ help='Fixes the issues of the PO headers, otherwise only check is done.')
parser.add_argument('--check-extended', dest='extended', action='store_true',
help='Do extended checks of PO headers.')
parser.add_argument('--lang', dest='lang', help='all files of a specific language.')
@@ -266,7 +266,7 @@ def main(logger) -> None:
.format(prog=prog))
pool = multiprocessing.Pool()
- if args.modify:
+ if args.fix:
# unify PO headers for a list of files
list(pool.map(unify_po_file, args.files))
else: