vm_build_utils.license : apply or reapply a license header to a source tree¶
find source files and apply a license header
usage: license.py [-h] [--license LICENSE]
[--replace-licenses REPLACE_LICENSES [REPLACE_LICENSES ...]]
[--file-types [FILE_TYPES [FILE_TYPES ...]]]
[--exclude [EXCLUDE [EXCLUDE ...]]] [--directory DIRECTORY]
[--action {print,execute}]
Named Arguments¶
| --license | path to a sample license text file |
| --replace-licenses | |
| paths to license text files to remove | |
| --file-types | list of file extensions Default: [‘.py’, ‘.swift’, ‘.cpp’, ‘.h’, ‘.proto’, ‘.txt’, ‘.sh’, ‘.md’, ‘.rst’, ‘.yml’, ‘.cmake’] |
| --exclude | list of directory and file names to exclude Default: [‘third_party’] |
| --directory | path to a base directory to search inside Default: “./” |
| --action | Possible choices: print, execute path to a base directory to search inside |