Skip to content

Commit

Permalink
default to latest and config and update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxWiklund committed May 29, 2023
1 parent de8dbed commit cd968fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions mayaff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)

Expand Down

0 comments on commit cd968fd

Please sign in to comment.