Skip to content

best practice for exporting all args #8

@vsoch

Description

@vsoch

Is there a best practice / suggestion for exporting all arguments from a script that uses argparse? For example, I'm developing an application that needs to understand what inputs / types are allowed and required, and starting with a standard argument parser seems like the right way to go. Some possible ideas I've been thinking of are something that would use inspect, or having a standard template that returns the parse object. Ideally, any script using argparse should be able to be run through this function to produce some data structure that contains this information (with minimal requirements to customize the script with argparse)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions