-
Notifications
You must be signed in to change notification settings - Fork 0
Easily configurable license information #147
Comments
Comment by CreepySkeleton Sounds good to me. @pksunkara @Dylan-DPC @TeXitoi what do you think? |
Comment by pksunkara This is more similar to |
Comment by Dylan-DPC @Dantali0n thanks for the request. In this case it is better we make it a separate crate and see how it goes and then later merge it into clap if needed. Would you like to volunteer to write it? (we can mentor). Else will try myself or get someone to write it |
Comment by Dantali0n
Hi, In terms of experience I don't think I am there yet as I am written my very first rust program atm. Currently I am still struggling with a lot of construct in rust, in addition, I tend not to have a lot of free time. Therefor, I think it is better if someone else tries to implement this, assuming someone has time and feels motivated to do so ofcourse. |
Comment by TheAlgorythm I did a bit of research on the UX of displaying the license. There are mainly 2 options: A separate
|
Comment by epage Do clap users need to list all of the legally relevant licenses and notices or just the license and attribution for their own program, leaving the rest to another file like with cargo-about? |
Comment by TheAlgorythm Idk, I'm not a lawyer. |
Issue by Dantali0n
Friday Mar 27, 2020 at 15:01 GMT
Originally opened as clap-rs/clap#1768
Describe your use case
Some types of software licenses, in particular GPL and friends, require licensing information to be displayed by the program upon request. Naturally this can already be configured with clap by creating a flag similar to -h/--help, however, I think this can be improved
Describe the solution you'd like
A more seamlessly integrated solution similar to
.author()
would improve this. Thelicense()
function could take sufficient arguments to automatically generate the licensing excerpt. for instance:.license(gplv3, 'MyNiceCompany.inc')
.Calling the program with --license could generate the following:
The text was updated successfully, but these errors were encountered: