Add --version and update docs
This commit is contained in:
parent
b05226b817
commit
4716bb7d0d
1
1.8.md
1
1.8.md
|
@ -15,6 +15,7 @@
|
||||||
- Supress `getconfig` and `getscriptdir` errors.
|
- Supress `getconfig` and `getscriptdir` errors.
|
||||||
- Fix issue when title and background were both color `7`.
|
- Fix issue when title and background were both color `7`.
|
||||||
- Fix issues with `bc` and the scale option. **[@maddcoder](https://github.com/maddcoder)**
|
- Fix issues with `bc` and the scale option. **[@maddcoder](https://github.com/maddcoder)**
|
||||||
|
- Added `--version` to print the neofetch version.
|
||||||
|
|
||||||
|
|
||||||
### Info
|
### Info
|
||||||
|
|
|
@ -468,6 +468,11 @@ alias fetch2="fetch \
|
||||||
--config /path/to/config Specify a path to a custom config file
|
--config /path/to/config Specify a path to a custom config file
|
||||||
--config none Launch the script without a config file
|
--config none Launch the script without a config file
|
||||||
--help Print this text and exit
|
--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.
|
||||||
|
|
||||||
|
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
|
|
2
neofetch
2
neofetch
|
@ -2957,6 +2957,7 @@ usage () { cat << EOF
|
||||||
--config /path/to/config Specify a path to a custom config file
|
--config /path/to/config Specify a path to a custom config file
|
||||||
--config none Launch the script without a config file
|
--config none Launch the script without a config file
|
||||||
--help Print this text and exit
|
--help Print this text and exit
|
||||||
|
--version Show neofetch version
|
||||||
--test Launch the script with all functions / options enabled.
|
--test Launch the script with all functions / options enabled.
|
||||||
This should only be used for testing purposes, ie Travis.CI.
|
This should only be used for testing purposes, ie Travis.CI.
|
||||||
-v Display error messages.
|
-v Display error messages.
|
||||||
|
@ -3154,6 +3155,7 @@ while [ "$1" ]; do
|
||||||
-v) verbose="on" ;;
|
-v) verbose="on" ;;
|
||||||
-vv) set -x; verbose="on" ;;
|
-vv) set -x; verbose="on" ;;
|
||||||
--help) usage ;;
|
--help) usage ;;
|
||||||
|
--version) printf "%s\n" "Neofetch 1.8"; exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH NEOFETCH "1" "March 2016" "1.5" "User Commands"
|
.TH NEOFETCH "1" "May 2016" "1.8" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
neofetch \- simple system information script
|
neofetch \- simple system information script
|
||||||
|
|
||||||
|
@ -261,6 +261,9 @@ Launch the script without a config file
|
||||||
Launch the script with all functions / options enabled.
|
Launch the script with all functions / options enabled.
|
||||||
This should only be used for testing purposes, ie Travis.CI.
|
This should only be used for testing purposes, ie Travis.CI.
|
||||||
.TP
|
.TP
|
||||||
|
.B \--version
|
||||||
|
Show neofetch version.
|
||||||
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Display error messages.
|
Display error messages.
|
||||||
.TP
|
.TP
|
||||||
|
|
Reference in New Issue