diff --git a/1.8.md b/1.8.md index 473931a1..37af0a39 100644 --- a/1.8.md +++ b/1.8.md @@ -15,6 +15,7 @@ - Supress `getconfig` and `getscriptdir` errors. - Fix issue when title and background were both color `7`. - Fix issues with `bc` and the scale option. **[@maddcoder](https://github.com/maddcoder)** +- Added `--version` to print the neofetch version. ### Info diff --git a/README.md b/README.md index 98d6ce79..9336f17d 100644 --- a/README.md +++ b/README.md @@ -468,6 +468,11 @@ alias fetch2="fetch \ --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. + -vv Display a verbose log for error reporting. diff --git a/neofetch b/neofetch index 7e8aeb5f..6d8b6f53 100755 --- a/neofetch +++ b/neofetch @@ -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 diff --git a/neofetch.1 b/neofetch.1 index cc0f9a6a..d23f1b1b 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -1,4 +1,4 @@ -.TH NEOFETCH "1" "March 2016" "1.5" "User Commands" +.TH NEOFETCH "1" "May 2016" "1.8" "User Commands" .SH NAME neofetch \- simple system information script @@ -261,6 +261,9 @@ Launch the script without a config file Launch the script with all functions / options enabled. This should only be used for testing purposes, ie Travis.CI. .TP +.B \--version +Show neofetch version. +.TP .B \-v Display error messages. .TP