sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Ambiguity when there is a tackle.yaml file in the same directory as argument with `--find-in-parent` #154

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

Only when run in python, if there is a tackle.yaml file in the same dir then it get very confuse.

    os.chdir(os.path.join('func-provider-hook', 'a-dir'))
    o = tackle('funcs.yaml', 'here', find_in_parent=True)
 tackle.exceptions.UnknownInputArgumentException: Error parsing input_file='funcs.yaml' 
The default hook was supplied the arg='funcs.yaml' and does not take any arguments. Exiting.