aboutsummaryrefslogtreecommitdiff
path: root/g.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-06-29 09:49:36 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-06-29 09:49:36 +0200
commit0f7ff3a89637a36100b2c349a6a0f22115a508dd (patch)
tree385c30a2440c3e2f36eaa41f3a6ba484ba6ff0db /g.sh
parentb3e0e8a91926d964aae7379c7c4812ef5324886f (diff)
downloadg-0f7ff3a89637a36100b2c349a6a0f22115a508dd.tar.gz
g-0f7ff3a89637a36100b2c349a6a0f22115a508dd.zip
Add copyright notice into the -v/--version flags
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'g.sh')
-rw-r--r--g.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/g.sh b/g.sh
index a245c81..90a8dff 100644
--- a/g.sh
+++ b/g.sh
@@ -112,7 +112,13 @@ g() {
# Parse the command.
case "$cmd" in
-v | --version)
- echo "g version $version"
+ cat <<HERE
+g version $version
+Copyright (C) 2013-2016 Miquel Sabaté Solà <mikisabate@gmail.com>
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+HERE
;;
-h | --help)
__g_help