general: Added --print_config to display the default config file.

This commit is contained in:
Dylan Araps 2018-05-19 08:28:10 +10:00
parent c782af6a06
commit 992d0b38ae
2 changed files with 5 additions and 0 deletions

View File

@ -4814,6 +4814,7 @@ SCREENSHOT:
OTHER: OTHER:
--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
--print_config Print the default config file to stdout.
--stdout Turn off all colors and disables any ASCII/image backend. --stdout Turn off all colors and disables any ASCII/image backend.
--help Print this text and exit --help Print this text and exit
--version Show neofetch version --version Show neofetch version
@ -5006,6 +5007,7 @@ get_args() {
;; ;;
"--stdout") stdout="on" ;; "--stdout") stdout="on" ;;
"-v") verbose="on" ;; "-v") verbose="on" ;;
"--print_config") printf "%s\\n" "$config"; exit ;;
"-vv") set -x; verbose="on" ;; "-vv") set -x; verbose="on" ;;
"--help") usage ;; "--help") usage ;;
"--version") "--version")

View File

@ -326,6 +326,9 @@ Specify a path to a custom config file
\fB\-\-config\fR none \fB\-\-config\fR none
Launch the script without a config file Launch the script without a config file
.TP .TP
\fB\-\-print_config\fR
Print the default config file to stdout.
.TP
\fB\-\-stdout\fR \fB\-\-stdout\fR
Turn off all colors and disables any ASCII/image backend. Turn off all colors and disables any ASCII/image backend.
.TP .TP