General: Added --gen-man

This commit is contained in:
Dylan Araps 2016-12-14 23:04:08 +11:00
parent d35d9a01d7
commit 588c3e971a
2 changed files with 10 additions and 0 deletions

View File

@ -3175,6 +3175,10 @@ OTHER
-v Display error messages. -v Display error messages.
-vv Display a verbose log for error reporting. -vv Display a verbose log for error reporting.
DEVELOPER
--gen-man Generate a manpage for Neofetch in your PWD.
Report bugs to https://github.com/dylanaraps/neofetch/issues Report bugs to https://github.com/dylanaraps/neofetch/issues
@ -3377,6 +3381,7 @@ get_args() {
"-vv") set -x; verbose="on" ;; "-vv") set -x; verbose="on" ;;
"--help") usage ;; "--help") usage ;;
"--version") version ;; "--version") version ;;
"--gen-man") help2man -N neofetch -o neofetch.1; exit 1 ;;
esac esac
shift shift

View File

@ -260,6 +260,11 @@ Display error messages.
.TP .TP
\fB\-vv\fR \fB\-vv\fR
Display a verbose log for error reporting. Display a verbose log for error reporting.
.PP
DEVELOPER
.TP
\fB\-\-gen\-man\fR
Generate a manpage for Neofetch in your PWD.
.SH AUTHOR .SH AUTHOR
Written by Dylan Araps with help from the following people: Written by Dylan Araps with help from the following people:
.PP .PP