forked from UTulsa-Research/ag_gen
Change getopt() to getopt_long() #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change the getopt() in main.cpp for argument parsing.
Current Behavior
Takes single char arguments. We've currently gone through a-h, lmn, p-u, x, z, and '?'.
Desired Behavior
Expand the possible arguments. Reading the man page of getopt(), it looks like getopt_long() should allow us a bit more flexibility.
Possible Solution
It does not appear that a rework of the current getopt() is needed. getopt_long() works just the same as getopt(), but it can also accept long arguments. We can leave the arguments as-is, then add new long arguments.