How do I detect the user passed no arguments to a program with getopt_long? I could detect the user calling the program with no arguments by checking argc, but what about the user calling my program with just a dash?
$ my_prog -
Do I need to include this option somehow in my getopt statement?
while(ca = getopt_long(argc, argv, "abc:D:",...)
What would the function return?