SyntaxFix
Write A Post
Hire A Developer
Questions
For parsing command line arguments on posix systems, the standard is to use the getopt() family of library routines to handle command line arguments.
getopt()
A good reference is the GNU getopt manual