Skip to content

Argument Improvement for Python Scripts #583

@MikeZappa87

Description

@MikeZappa87

I noticed in this file

PYTHONPATH=$PYTHONPATH:$(pwd) python3 $PYTHON_SCRIPT_FILE configure \

We are not using named arguments such as --{somearg}={some value}. The current approach will eventually become very tough to maintain. The slo.py (

parser = argparse.ArgumentParser(description="SLO Kubernetes resources.")
) is already using named arguments as well. Is it possible to update the current approach to make use of the named arguments for maintainability? It's much easier for someone to trace the code if we use named arguments. Positional is good with 1 or 2 arguments, not more than that.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions