Previous: forget invocation, Up: Other commands [Index]
detect
: Determine the license notice in a fileDisplay the license notice similarities. This command checks to see how similar the uncommented boilerplate of a file is to all of the licenses that licenseutils knows about. With the -a option, this command generates a list of percentages, one line for every license.
Each generated percentage means that the particular license notice is a given prcentage similar to the uncommented boilerplate. When the percentage is 100 percent, it means licenseutils is certain of a match. When the percentage is less than 100%, it means that licenseutils is not certain of a match, but the string is similar to an extent. When two or more licenses are shown as 100% it means that the file has two or more license notices in it.
The detect
command also checks for the full-text of licenses. And optionally, with the --mention option it will check for references to licenses. For example: This program is licensed under the GPL.
When a .png
file is encountered, it is automatically checked by the detect
command.