change default operation
Closed this issue · 2 comments
florianschanda commented
Make -I .
the default mode of operation.
Add new parameter --no-default-include
or similar to restore the current behaviour.
phiwuu commented
@florianschanda How exactly shall the default mode of operation behave?
If all files are treated as -I
, then how does TRLC know which file to analyze for sure?
Is the idea to treat folders as -I
, but files as "include for sure"?
Example 1:
trlc "file1.rsl" "file1.trlc" "folder"
will do the following:
- parse/validate
file1.rsl
- parse/validate
file1.trlc
- if references could not be resolved, then also parse/validate everything inside
folder
Example 2:
trlc "file1.rsl" "file1.trlc" "folderA" -I "folderB" --no-default-include
will do the following:
- parse/validate
file1.rsl
and all RSL files insidefolderA
- parse/validate
file1.trlc
and all RSL files insidefolderA
- if references could not be resolved, then also parse/validate everything inside
folderB
I ignored check files in these examples.
phiwuu commented
I am closing this ticket, as I don't see the benefit right now.