lang: Improve cli input handling for files/directories and metadata.yaml
#683
+27
−13
metadata.yaml
#683