I'm trying to write my own clone of the UNIX utility Cut. Syntax as follows:
cut sourcefile -c1,15
I'm still getting familiar with argv and handling arguments passed to it. I realize that:
argv = cut
argv = sourcefile
argv = -c1,15
When I'm processing the command line args, how can I check that argv contains the "-c"?