Add --version and update docs

This commit is contained in:
Dylan Araps
2016-05-30 15:14:16 +10:00
parent b05226b817
commit 4716bb7d0d
4 changed files with 12 additions and 1 deletions

View File

@@ -2957,6 +2957,7 @@ usage () { cat << EOF
--config /path/to/config Specify a path to a custom config file
--config none Launch the script without a config file
--help Print this text and exit
--version Show neofetch version
--test Launch the script with all functions / options enabled.
This should only be used for testing purposes, ie Travis.CI.
-v Display error messages.
@@ -3154,6 +3155,7 @@ while [ "$1" ]; do
-v) verbose="on" ;;
-vv) set -x; verbose="on" ;;
--help) usage ;;
--version) printf "%s\n" "Neofetch 1.8"; exit ;;
esac
shift