silnrsi / grcompiler

The SIL Graphite compiler builds a Graphite enabled font from a smart font description
http://graphite.sil.org
Other
7 stars 3 forks source link

provide -o / --output parameter #2

Closed n7s closed 5 years ago

n7s commented 6 years ago

When doing multiple chained runs of grcompiler (.i.e in a CI environment), the default output file for errors gdlerr.txt gets overwritten. Can we please have an -o / --output parameter to name the output file? Smith (or other tools) can then use that parameter to write a file with the name of the font file in question.

mhosken commented 6 years ago

I would prefer -l / --log (for logging) rather than -o, since the output of grcompiler is a font, not a log file :)

sharoncorrell commented 6 years ago

I agree... -o is not appropriate. We already have an -offsets option. -l would be okay, or maybe -e for error file? To me "logging" sounds like something optional.

By the way, we are not right now supporting the letter and word versions of the options. We only support one form.

bobh0303 commented 6 years ago

-l for "logfile", not for "logging".

If -l not supplied, then use 'gdlerr.txt'

sharoncorrell commented 6 years ago

I decided on -e for various reasons.

sharoncorrell commented 5 years ago

Implemented using -e.