From 7503fcc37bd78f1a5080ea2b46f79239d8bd69fb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 12 Mar 2020 00:42:45 +0200 Subject: [PATCH] pfetch: Add --version. Closes #47 --- pfetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pfetch b/pfetch index 20cca5e..94e5eb9 100755 --- a/pfetch +++ b/pfetch @@ -1455,6 +1455,11 @@ get_ascii() { } main() { + [ "$1" = --version ] && { + printf 'pfetch 0.7.0\n' + exit + } + # Hide 'stderr' unless the first argument is '-v'. This saves # polluting the script with '2>/dev/null'. [ "$1" = -v ] || exec 2>/dev/null