diff --git a/README.md b/README.md index 2c8e660..a333390 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,8 @@ mayaff only supports python 3.7+ ## Usage Options: ``` -usage: mayaff [-h] [-v] [-t {2018,2020,2022} | --config CONFIG] [--check] [--diff] [--quiet] [--exclude EXCLUDE] - [--exclude-files EXCLUDE_FILES [EXCLUDE_FILES ...]] [--modules MODULES] [--single-thread] +usage: mayaff [-h] [-v] [-t {2018,2020,2022,2023} | --config CONFIG] [--check] [--diff] [--quiet] [--exclude EXCLUDE] [--exclude-files EXCLUDE_FILES [EXCLUDE_FILES ...]] [--modules MODULES] + [--single-thread] source [source ...] Command line tool to find and replace short maya flags. @@ -70,9 +70,9 @@ positional arguments: optional arguments: -h, --help show this help message and exit -v, --version show program's version number and exit - -t {2018,2020,2022}, --target-version {2018,2020,2022} + -t {2018,2020,2022,2023}, --target-version {2018,2020,2022,2023} Target Maya version to use when formatting flags. - --config CONFIG Custom maya config file. The file hase ben generated with `maya_config_generator.py` + --config CONFIG Custom maya config file. If you want to provide a custom config file different to the target options. --check Don't write to files. Just return the return code. --diff Don't write the files back, just output a diff for each file to stdout. --quiet, -q Output nothing to stdout and set return value. diff --git a/mayaff/__init__.py b/mayaff/__init__.py index 422bd79..4a47721 100644 --- a/mayaff/__init__.py +++ b/mayaff/__init__.py @@ -49,8 +49,8 @@ def set_up_argparser() -> argparse.Namespace: config_group.add_argument( "-t", "--target-version", - default="2022", - choices=config_options, + default=max(config_options), + choices=sorted(config_options), help="Target Maya version to use when formatting flags.", )