h, -help show this help message and exit License the license to generate, one of: agpl3, apache, bsd2,īsd3, cddl, cc0, epl, gpl2, gpl3, lgpl, mit, mpl Great! Is it a license that is commonly used? If so, open an issue or, if you are feeling generous, fork and submit a pull request. The mit license template contains the following variables: You can see what variables are available to you for any of the licenses: $ lice -vars mit If the project name is not specified, the name of the current directory is used. If not found, it will use the value of the $USER environment variable. If organization is not specified, lice will first attempt to use git config to find your name. * Redistribution and use in source and binary forms, with or without modification, * Copyright (c) 2012, Sunlight Foundation Generate a source file (language detected by -f extension): $ lice -f test.c & cat test.c Generate a python source file with a BSD-3 license commented in the header: $ lice -l py -f test # Redistribution and use in source and binary forms, with or without modification, # Copyright (c) 2012, Sunlight Foundation Generate a BSD-3 license, formatted for python source file: $ lice -l py Generate a BSD-3 license, specifying the year and organization to be used: $ lice -y 2012 -o "Sunlight Foundation" Permission is hereby granted, free of charge, to any person obtaining a copy Redistribution and use in source and binary forms, with or without modification, Generate a BSD-3 license, the default: $ lice InstallationĪbout what you'd expect: pip install lice No more hunting down licenses from other projects.
0 Comments
Leave a Reply. |