Skip to content

REFACTOR: change args for specific arguments #114

@atteggiani

Description

@atteggiani

Overview

Many of the functions in this repo's scripts accept the entire parsed arguments args.
This is often not necessary and it might be preferable to only pass the specific arguments that each function requires.

Solution

Change instances of args in functions with the specific arguments needed.
Something like:

- def myfunc(args, arg2, arg3):
+ def myfunc(args.specific_arg1, args.specific_arg2, arg2, arg3):
    ...

- myfunc(args, arg2, arg3):
+ myfunc(args.specific_arg1, args.specific_arg2, arg2, arg3):
    ...

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