I need to use two arguments with one parameter each, only that in case of grouping them the parameter serves for the two arguments.
For example:
miprograma -a 45
miprograma -b 45
miprograma -ab 45
I do not know if it is understood, I already probe with:
getopt (argc, argv, "ab:")
getopt (argc, argv, "ab:a:b:")
and they do not work, I already appreciate the help.