How to Programmatically Get Collection Path

Is there a way to programmatically get the collection name and/or filepath set by -collection flag? A global variable similar to ODIN_ROOT maybe? Can’t seem to find it.

odin build . -collection:<name>=<filepath>