Just to give and example of using strings and dynamically allocating new strings. Probably useful when you don't know the size of argv[?]
// Make the string with the value you want compared
char testString[] = "-command";
// Make a char pointer, use new to allocate the memory
// the size is determined by string length of argv[1]
char * strToTest = new char[ strlen( argv[1] ) ];
// Now we can copy the contents of argv[1] into strToTest as they are equal size
strcpy( strToTest, argv[1] );
// Now strcmp returns True if the two strings match
if (strcmp( testString, strToTest ) {
//do somthing here ...
}