nexB / source-inspector

Tools to inspect source code and code symbols
0 stars 1 forks source link

xgettext: use --omit-header argument #12

Closed armijnhemel closed 3 months ago

armijnhemel commented 3 months ago

You might want to use the --omit-header argument when invoking xgettext. by default a header is printed with a license template, which is then ignored by your parser. Why not make sure it is not printed in the first place so you don't have to ignore it (because it isn't there)?

This is a micro-optimization but when processing large amounts of files in batch mode it might pay off.

armijnhemel commented 3 months ago

Eh, looks like you are using this. Note to self: don't file issues when not awake.