Hey Sebastian,
Really cool work mate.
I have found argparse to be super helpful in handling arguments to cli tools, with well structured --help, required, grouped, and mutually exclusive args,
Here is an example from one of my single file python repos from a few years back, that looked at amplicon coverage across viral genomes.
https://github.com/Psy-Fer/CoVarPlot/blob/main/covarplot.py
So this would replace your current sys.argv[1:] arg handling, and formalise the short(-)/long(--) args.
A say this as someone who spend years using sys.argv before switching myself, but can confirm, it's solid, and part of the core python standard libs.
Cheers,
James
Hey Sebastian,
Really cool work mate.
I have found argparse to be super helpful in handling arguments to cli tools, with well structured
--help, required, grouped, and mutually exclusive args,Here is an example from one of my single file python repos from a few years back, that looked at amplicon coverage across viral genomes.
https://github.com/Psy-Fer/CoVarPlot/blob/main/covarplot.py
So this would replace your current
sys.argv[1:]arg handling, and formalise the short(-)/long(--) args.A say this as someone who spend years using sys.argv before switching myself, but can confirm, it's solid, and part of the core python standard libs.
Cheers,
James