tarsqi / ttk

Tarsqi Toolkit
Apache License 2.0
25 stars 10 forks source link

Find better way to specify input #39

Closed marcverhagen closed 3 years ago

marcverhagen commented 7 years ago

We are quite unhappy with source=X as an option. May want to introduce format=X with X in [xml, text, ttk] and another option, but naming is tricky (genre?, domain? input-type?) and there are interactions between format/domain and what processing has already been done.

Related to https://github.com/tarsqi/ttk/issues/14 and https://github.com/tarsqi/ttk/issues/18.

marcverhagen commented 3 years ago

With the LIF format added (see issue #88) we have seemingly also added an inconsistency in that TTK always creates TTK except when the input is LIF as indicated by --source=lif.

It is probably better to use two parameters:

  1. Use --input-format to avoid or overrule guessing of what the input format is. This can also be used to deal with the issue we have with the --pipe parameter which makes the guess currently impossible (issue #71).

  2. Use --output-format to overrule the ttk default.

This doesn't solve the problem of potentially wanting to write domain specific code, but we can deal with that if needed by adding a --domain parameter.