// ************************************************************************************************ // AnyScript Sample - List the command-line options sent to the program // This simply lists the arguments sent to main from the command-line // This looks way different than the same thing would in C/C++ // Created: 2007-01-19 // Last Modified: 2007-01-19 // by Mark Ormston // ************************************************************************************************ Nothing Main(UProcInt ArgumentCount, String *Arguments) { Print(ArgumentCount + " arguments found.\n"); For (UProcInt q = 0; q < ArgumentCount; q++) { Print("Argument #" + q + ": " + Arguments[q] + "\n"); } } // Main