I'd like to allow the user of my program to use the "~" shortcut in the arguments that are paths to some files, i.e., the "home" shortcut for linux systems. But to do so, as far as I understand, I need to all the os.path.expanduser function over each argument that is a path.
Is there a nicer way to do so, using the options provided in argparse?