Currently, parse_args overwrites config and other parsed arguments, a file path, with the parsed JSON. This makes the original file path inaccessible. This PR adds allows for accessing the original argument / file path.
For context, for a tap which needs the refresh token saved after each auth, I need to save the changes to the config file, which means I need access to the config path.
Functional Testing
Running parse_args the args for a tap and accessing the config_path
Currently,
parse_args
overwritesconfig
and other parsed arguments, a file path, with the parsed JSON. This makes the original file path inaccessible. This PR adds allows for accessing the original argument / file path.For context, for a tap which needs the refresh token saved after each auth, I need to save the changes to the config file, which means I need access to the config path.
Functional Testing
parse_args
the args for a tap and accessing theconfig_path