mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
783 B
Plaintext
34 lines
783 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# licensor
|
|
|
|
> Write licenses to `stdout`.
|
|
> More information: <https://github.com/raftario/licensor>.
|
|
|
|
- Write the MIT license to a file named `LICENSE`:
|
|
|
|
`licensor {{MIT}} > {{LICENSE}}`
|
|
|
|
- Write the MIT license with a placeholder copyright notice to a file named `LICENSE`:
|
|
|
|
`licensor {{[-p|--keep-placeholder]}} {{MIT}} > {{LICENSE}}`
|
|
|
|
- Specify a copyright holder named Bobby Tables:
|
|
|
|
`licensor {{MIT}} "{{Bobby Tables}}" > {{LICENSE}}`
|
|
|
|
- Specify license exceptions with a WITH expression:
|
|
|
|
`licensor "{{Apache-2.0 WITH LLVM-exception}}" > {{LICENSE}}`
|
|
|
|
- List all available licenses:
|
|
|
|
`licensor {{[-l|--licenses]}}`
|
|
|
|
- List all available exceptions:
|
|
|
|
`licensor {{[-e|--exceptions]}}`
|