It would be spiffy if Io had this, so that you could control whether code is run, e.g. a combination API-CLI coolstuff.io would run a command line interface, but only if run directly, not when coolstuff.io is imported by other Io code (which may have its own command line interface).
Share
ScriptedMain.io:
test.io:
Example: