tarsqi / ttk

Tarsqi Toolkit
Apache License 2.0
25 stars 10 forks source link

Add source checking #51

Closed marcverhagen closed 7 years ago

marcverhagen commented 7 years ago

It happens too often that you run a pipeline and give the wrong value of --source, typically by running over a TTK file and then forgetting to use --source=ttk, in which case the xml default is used and your results can be puzzling.

Add some checking where the code checks whether what we have really is xml or ttk.

marcverhagen commented 7 years ago

Actually, why not have the code determine the kind of input, deciding whether the source is ttk, xml or text and then just running. We could still optionally use --source when the format is more specific.