Add possibility to list all versions

This commit is contained in:
Matthias Beyer 2016-01-31 13:44:48 +01:00
parent 60d680b881
commit fe7ed7c64d

View file

@ -8,7 +8,7 @@ help() {
local cmds="$(commands)" local cmds="$(commands)"
cat <<EOS cat <<EOS
Usage: imag [--version | -h | --help] <command> <args...> Usage: imag [--version | --versions | -h | --help] <command> <args...>
imag - the personal information management suite for the commandline imag - the personal information management suite for the commandline
@ -41,6 +41,14 @@ commands() {
main() { main() {
case $1 in case $1 in
--versions)
echo -n "imag "; version
for command in $(commands); do
$command --version
done
exit 0
;;
--version) --version)
version version
exit 0 exit 0