nishanths / license

Command line license text generator.
MIT License
663 stars 82 forks source link

GPL-3.0 license doesn't print name and year #32

Closed johackim closed 3 years ago

johackim commented 3 years ago

Hello,

When I use this command :

license -name "Alice L" -year 2013 gpl-3.0

The <name of author> and <year> fields remain empty.

Thanks in advance :)

nishanths commented 3 years ago

Thanks for the report. I don't think the <name of author>, <year>, <program> fields are meant to be replaced in this license. I'm basing this on the COPYING file in the emacs repository. It has <name of author>, etc. as is without replacement.

https://git.savannah.gnu.org/cgit/emacs.git/tree/COPYING#n635 https://git.savannah.gnu.org/cgit/emacs.git/tree/COPYING#n655

I don't have a lot of knowledge with this license, so please let me know if these are actually meant to be replaced.

nishanths commented 3 years ago

The <name of author>, etc. fields appear under the section "How to Apply These Terms to Your New Programs".

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.

So it seems expected that they should be as is?

johackim commented 3 years ago

Oh yes ! You're right, my mistake, i didn't know that.

Here an other example : https://github.com/ansible/ansible/blob/devel/COPYING

Thanks for your help !