5.3.1.22.11.2. cli.pre_commit_scripts.sort_include_lists.main
- cli.pre_commit_scripts.sort_include_lists.main(argv: Sequence[str] | None = None) int
Check or fix sorting of includes lists in wscript files.
- Parameters:
argv – Optional command-line arguments containing file paths and the optional –fix flag.
- Returns:
In check mode, the number of unsorted lists found, capped at 255. In fix mode, 0 when no errors or changes were found, otherwise 1 after rewriting files or reporting errors.