make fetchpo poqm aware and change argument handling to scale better
ClosedPublic

Authored by sitter on Apr 20 2017, 1:55 PM.

Details

Summary
  • l10n.get now has a third argument for the poqm target, use it
  • changed option parsing to explicitly expect the output dirs, argument popping gets really shitty if you need to pop more than one
  • compressed help verbosity a bit by dropping excess option information

Diff Detail

Repository
R572 releaseme
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Apr 20 2017, 1:55 PM
apol added inline comments.Apr 20 2017, 1:59 PM
fetchpo.rb
56

Do we _always_ need to have an output-poqm_dir?

68–69

Same with output_poqm_dir?

sitter updated this revision to Diff 13643.Apr 20 2017, 2:09 PM
sitter marked an inline comment as done.

check poqm_dir as well

sitter marked an inline comment as done.Apr 20 2017, 2:09 PM
sitter added inline comments.
fetchpo.rb
56

Releaseme does not know if it needs the dir until it actually looked at the templates. So as far as fetchpo is concerned I think it's safest to explicitly require one. If there are no actual qt translations it won't matter if you passed a useless argument. If there are, the lack of a directory to put them in is a problem however.

apol accepted this revision.Apr 20 2017, 2:37 PM
This revision is now accepted and ready to land.Apr 20 2017, 2:37 PM
This revision was automatically updated to reflect the committed changes.