Skip to content

Argparse for argument handling #11

Description

@Psy-Fer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions