moonscript
moonscript copied to clipboard
moonc doesn't handle absolute paths
When I specify absolute paths for the output directory and for files to compile, moonc replies with "Invalid argument", while the equivalent relative paths work.
Example command:
moonc -t C:\Example\Path\lua C:\Example\Path\src\foo1.moon
Will result in:
C:\Example\Path\src\foo1.moon C:\Example\Path\lua\C:\Example\Path\src\foo1.lua: Invalid argument
However, the command (while in C:\Example\Path):
moonc -t lua src\foo1.moon
works:
Built src\foo1.moon
This seems to relate to #342. Apparently, the two absolute paths get concatenated as-is. I'm not sure if absolute paths are unsupported. If they are, this should be noted in moonc's help output.