// E00-PrintArgs.cpp -- print command line arguments to standard output
//  usage: ./E00-PrintArgs alpha beta gamma

#include <Platform.h>
using namespace Platform;


// program entry point
//====================================================================================================
AppMain(args)
{
    // print the index and value of each command line argument
    for(Int i = 0; i < args.size(); i++)
        Runtime::StdOut::fprintln(appText("arg[%d] = %s"), i, +args[i]);

    // an even simpler way of printing the program arguments (albeit without index) is:
    //
    //  Runtime::StdOut::println(args.toString());

    return 0;
}


/* EOF */