Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify -o long option to be --store-dir #59

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

mslw
Copy link
Collaborator

@mslw mslw commented Aug 12, 2024

This changes make_studyvisit_archive to use -o / --store-dir, consistent with the other three scripts. The --output-dir argument is marked as deprecated but remains supported for the time being. Closes #52

Use of both long forms is guarded againist by using a mutually exclusive group. A deprecation warning is issued when --output-dir is used. When the deprecated parameter is removed, both the group and the warning can be done away with.

As a side note, it seems that Python 3.13 will add "deprecated" to argparse's add_argument:
https://docs.python.org/3.13/library/argparse.html#deprecated

This changes make_studyvisit_archive to use -o / --store-dir,
consistent with the other three scripts. The --output-dir argument is
marked as deprecated but remains supported for the time being.

Use of both long forms is guarded againist by using a mutually
exclusive group. A deprecation warning is issued when --output-dir is
used. When the deprecated parameter is removed, both the group and the
warning can be done away with.

As a side note, it seems that Python 3.13 will add "deprecated" to
argparse's add_argument:
https://docs.python.org/3.13/library/argparse.html#deprecated
Co-authored-by: Adina Wagner <adina.wagner@t-online.de>
@mslw
Copy link
Collaborator Author

mslw commented Sep 12, 2024

I take the discussion above as an approval. The change does not break backwards compatibility, so I'm merging.

@mslw mslw merged commit c0d417c into psychoinformatics-de:main Sep 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent -o long option
2 participants