-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
Description
I am developing the WASM version of clang-format and testing the CLI that comes with it. (https://github.com/wasm-fmt/clang-format)
I've encountered issues with the non-standard CLI options generated by git-clang-format, which complicates the parsing process.
Typically, clang-format's CLI options are structured as follows:
-i - Inplace edit <file>s, if specified.
--style=<string> - Set coding style.
This is a standard CLI option, with a single hyphen representing a short option and a double hyphen representing a long option. However, CLI options generated by git-clang-format appear differently:
| clang_format_cmd.extend(['-style='+style]) |
In typical cli parsing libraries, the -style option is synonymous with -s -t -y -l -e, which has been a source of confusion for me.