This is a rather hypothetical question, but let me say that I have 3 long parameters starting with the same letter.
--parse or -p
--prune or -r
--pivot or -i
In the end, I will start to exhaust individual letters that make sense; moreover, it is difficult to assign something meaningful to the GNU getopt_long () setting .
{"parase", no_argument, 0, 'p'},
{"prune", no_argument, 0, 'r'},
{"pivot", required_argument, 0, 'i'}
What is the best practice in these situations?
source
share