I have the following code and I want to use to extract the config
parameter.
parser = argparse.ArgumentParser()
parser.add_argument(
"--config",
type=str,
default="src/config.yml",
dest="config"
)
My issue is that I cannot use parser.parse_args()
(because I'm running the script from uvicorn
and the parse_args
is raising an error. Is there a way to retrieve the config
parameter without the use of parse_args
?
Other answers I've seen make use of parse_args
.