#include <stdio.h>

main(argc, argv)
int argc;               /* the number of arguments in argv        */
char * argv[];          /* of null-terminated strings also known  */
                        /* as an array of arrays of char.  It     */
                        /* holds the contents of the command line */
{
        int loopcounter;

                        /* NOTE: The name with which the program  */
                        /* was invoked is held in argv[0].        */

        for (loopcounter=1; loopcounter < argc; loopcounter++) {
                switch (argv[loopcounter][0]) {
                        case '-' : {
                                printf("OPTION %s\n", &argv[loopcounter][1]);
                                break;
                        }
                        default : {
                                printf ("FILENAME %s\n", argv[loopcounter]);
                                break;
                        }
                }
        }
}

