aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/msgfmthelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/scripts/msgfmthelper.py')
-rw-r--r--mesonbuild/scripts/msgfmthelper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/msgfmthelper.py b/mesonbuild/scripts/msgfmthelper.py
index d4deb00..737f1bc 100644
--- a/mesonbuild/scripts/msgfmthelper.py
+++ b/mesonbuild/scripts/msgfmthelper.py
@@ -22,6 +22,7 @@ parser.add_argument('output')
parser.add_argument('type')
parser.add_argument('podir')
parser.add_argument('--datadirs', default='')
+parser.add_argument('args', default=[], metavar='extra msgfmt argument', nargs='*')
def run(args):
@@ -31,5 +32,5 @@ def run(args):
env = os.environ.copy()
env.update({'GETTEXTDATADIRS': options.datadirs})
return subprocess.call(['msgfmt', '--' + options.type, '-d', options.podir,
- '--template', options.input, '-o', options.output],
+ '--template', options.input, '-o', options.output] + options.args,
env=env)