getopt is mostly meant to be used to maintain compatibility with old C-style programs. Argparse is the defacto standard.
It also enabled making the options definition dynamic, so now we add allowed parameters on the fly, based on what config we have. This will make it possible to have different config (for IRC and Discord for example) in the future, while keeping the option parsing the same.
getopt is mostly meant to be used to maintain compatibility with old C-style programs. Argparse is the defacto standard.
It also enabled making the options definition dynamic, so now we add allowed parameters on the fly, based on what config we have. This will make it possible to have different config (for IRC and Discord for example) in the future, while keeping the option parsing the same.