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

Merged
mslw merged 2 commits from unify-long-opt into main 2024-09-12 13:04:27 +00:00

2 commits

Author SHA1 Message Date
8aed3919e6
Fix docstring typo
Co-authored-by: Adina Wagner <adina.wagner@t-online.de>
2024-08-19 11:59:12 +02:00
adc1ba6c8e Unify -o long option to be --store-dir
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
2024-08-12 17:38:57 +02:00