I am thinking about using argparse as my source of truth for command line settings and reduce a lot of code this way. For example, at the moment I am using separate variables to store the argparse arguments and also do some basic operations on them.
# Store product sets for upload, if argument is "all", take all options from available choices
args = parser.parse_args()
product_sets = args.product_sets
if "all" in product_sets:
product_sets = PRODUCT_SET_CHOICES[:-1]
Is it possible to do such a logical operation also directly on argparse?
Is it frowned upon to use argparse across the script rather than saving everything in a separate settings dict or variables?