diff options
Diffstat (limited to 'licensor')
-rwxr-xr-x | licensor | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/licensor b/licensor index 3458e7d..88fcee4 100755 --- a/licensor +++ b/licensor | |||
@@ -12,8 +12,9 @@ LICENSOR_CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/licensor" | |||
12 | 12 | ||
13 | usage() { | 13 | usage() { |
14 | cat <<EOF | 14 | cat <<EOF |
15 | $PRGN: drop a lil ol license in yr project | 15 | $PRGN: easily provide a license for a project |
16 | USAGE: $PRGN [-h|-m|-M] | 16 | USAGE: $PRGN [-h|-l|-L] |
17 | $PRGN -s QUERY | ||
17 | $PRGN [FLAGS] [OPTIONS] [LICENSE] | 18 | $PRGN [FLAGS] [OPTIONS] [LICENSE] |
18 | 19 | ||
19 | FLAGS: | 20 | FLAGS: |
@@ -21,10 +22,18 @@ FLAGS: | |||
21 | -l List available licenses and exit. | 22 | -l List available licenses and exit. |
22 | -L List available licenses, disregarding cache. | 23 | -L List available licenses, disregarding cache. |
23 | This flag will re-download the license repo. | 24 | This flag will re-download the license repo. |
25 | |||
24 | -f Overwrite existing license. | 26 | -f Overwrite existing license. |
25 | -q Be quiet (don't log anything). | 27 | -q Be quiet (don't log anything). |
28 | -z Fold output to $__width characters (see -w). | ||
29 | -Z Disable folding of output. | ||
30 | -p Include "optional" license content. | ||
31 | -P Don't include "optional" content. | ||
26 | 32 | ||
27 | OPTIONS: | 33 | OPTIONS: |
34 | -s QUERY Search for a license matching QUERY. | ||
35 | Only license titles are searched. | ||
36 | |||
28 | -y YEARS Set copyright date(s) to YEARS. | 37 | -y YEARS Set copyright date(s) to YEARS. |
29 | Default: \$(date +%Y). | 38 | Default: \$(date +%Y). |
30 | -a AUTHORS Set copyright holder(s) to AUTHOR. | 39 | -a AUTHORS Set copyright holder(s) to AUTHOR. |
@@ -35,6 +44,11 @@ OPTIONS: | |||
35 | -e EMAILS Set AUTHOR's EMAIL address. | 44 | -e EMAILS Set AUTHOR's EMAIL address. |
36 | Default: \$(git config --get user.email), | 45 | Default: \$(git config --get user.email), |
37 | or stay blank. | 46 | or stay blank. |
47 | -c COPYRIGHT Set the entire COPYRIGHT string to print. | ||
48 | By default, it's built from the above information: | ||
49 | "Copyright (C) <year> <author> <email>". | ||
50 | -w WIDTH Fold the output to WIDTH characters. | ||
51 | Default: $__width. | ||
38 | -o FILE Output the fetched license to FILE. | 52 | -o FILE Output the fetched license to FILE. |
39 | Default: \$PWD/$LICENSOR_OUTPUT_FILE. | 53 | Default: \$PWD/$LICENSOR_OUTPUT_FILE. |
40 | 54 | ||