diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 09:49:36 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 09:49:36 +0200 |
| commit | 0f7ff3a89637a36100b2c349a6a0f22115a508dd (patch) | |
| tree | 385c30a2440c3e2f36eaa41f3a6ba484ba6ff0db | |
| parent | b3e0e8a91926d964aae7379c7c4812ef5324886f (diff) | |
| download | g-0f7ff3a89637a36100b2c349a6a0f22115a508dd.tar.gz g-0f7ff3a89637a36100b2c349a6a0f22115a508dd.zip | |
Add copyright notice into the -v/--version flags
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | g.sh | 8 | ||||
| -rw-r--r-- | t/expected.txt | 16 |
2 files changed, 19 insertions, 5 deletions
@@ -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 diff --git a/t/expected.txt b/t/expected.txt index 0f58ff0..574a12b 100644 --- a/t/expected.txt +++ b/t/expected.txt @@ -1,16 +1,24 @@ g version 0.3.9 +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. g version 0.3.9 +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. usage: g [-h | --help] [-v | --version] <command> [<args>] The g commands are: - add Add a new shortcut. - rm Remove a shorcut. + add Add a new shortcut. + rm Remove a shorcut. list List all the available shortcuts. usage: g [-h | --help] [-v | --version] <command> [<args>] The g commands are: - add Add a new shortcut. - rm Remove a shorcut. + add Add a new shortcut. + rm Remove a shorcut. list List all the available shortcuts. Cannot use 'add': keyword. usage: g add <name> [path] |
