addlicense自动在一个或多个源代码文件的顶部插入指定的许可文件或版权消息

addlicense的Python项目详细描述


添加许可证

addlicense是一个简单的实用程序,它自动在一个或多个源代码文件的顶部插入指定的许可文件或版权消息

usage: addlicense.py [-h] [--licensefile LICENSEFILE]
                     [--commentblock COMMENTBLOCK] [--comment COMMENT] [-s]
                     [--backup]
                     sourcefiles [sourcefiles ...]

Automatically inserts a specified license file or copyright message at the top
of one or more source code files

positional arguments:
  sourcefiles           a list of files to update with the license or
                        copyright message

optional arguments:
  -h, --help            show this help message and exit
  --licensefile LICENSEFILE
                        a file containing the license or copyright text,
                        defaulting to LICENSE.txt
  --commentblock COMMENTBLOCK
                        a space-separated string indicating the characters to
                        use at the beginning and end of the license message to
                        demark them as a comment block
  --comment COMMENT     a string indicating the characters to use at the
                        beginning of each line of the license message to
                        demark them as comments
  -s, --skip-shebang-executable
                        skip the initial shebang executable command: if the
                        source file starts with a comment symbol (identified
                        via the --comment option) followed by a shebang, to
                        indicate an executable script on a POSIX system, then
                        the license text will be inserted AFTER this initial
                        line
  --backup              keep a copy of the original source-file with a .bak
                        extension


安装

addlicense是用python编写的,您可以使用pip安装程序安装它,因此:

$ pip install addlicense

主页

您可以在https://github.com/hossg/addlicense

找到addlicense的主页

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Hibernate:jpamodelgen生成java而不是类   java如何在第二次活动结束后显示广告?   javascript如何在linux或windows上将java导出到jar   java One ArrayList添加了2个不同的选项   AmazonWeb服务如何在java中使用AWS Textract检索pdf中存在的表   java为什么RecycleView中的水平项在单击时不起作用?   java计算如果存在映射   java在捕获的组上应用正则表达式   如何使用Java在MySQL的同一个表中插入来自不同类的值   java字符串中最常见的字母(大写和小写)   Spring SessionBean实例正在由java中的多个用户共享   使用Spring Boot将@WebInitParam中的值外部化   java一创建线程就开始执行(多线程)   java是安卓所需的系统权限。意图行动给你打电话?