From fe7ed7c64df36e8a1c485c5e5fc7e5393eccf094 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 31 Jan 2016 13:44:48 +0100 Subject: [PATCH] Add possibility to list all versions --- bin/imag | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/imag b/bin/imag index fc8bd5ce..0c51fadc 100755 --- a/bin/imag +++ b/bin/imag @@ -8,7 +8,7 @@ help() { local cmds="$(commands)" cat < + Usage: imag [--version | --versions | -h | --help] imag - the personal information management suite for the commandline @@ -41,6 +41,14 @@ commands() { main() { case $1 in + --versions) + echo -n "imag "; version + for command in $(commands); do + $command --version + done + exit 0 + ;; + --version) version exit 0