git repos / blockattack-game

commit 4cd8ea09

Poul Sander · 2016-10-05 20:04
4cd8ea09136d64f5802b5e6071cd9a5d0eccb185 patch · browse files
parent 7d649ca819af31e28a380543dc658a34846d799a

Added the --name to the help2man command. Regenereted the man-file.
This should close https://github.com/blockattack/blockattack-game/issues/7

Changed files

M man/README before
M man/blockattack.man before
M source/code/main.cpp before
diff --git a/man/README b/man/README index 8fbc3a2..909df2d 100644 --- a/man/README +++ b/man/README
@@ -2,4 +2,4 @@ to regenerate the manpage:
gzip -9 -c blockattack.man > blockattack.6.gz #This is done by the package script
This line will regenerate the source file. This should be committed as not all platforms can generate it.
-COLUMNS=300 help2man --no-info --section=6 ../Game/blockattack | sed 's@'"$HOME"'@$HOME@g' > blockattack.man
+COLUMNS=300 help2man --no-info --section=6 --name="a puzzle game inspired by Tetris Attack" ../Game/blockattack | sed 's@'"$HOME"'@$HOME@g' > blockattack.man
diff --git a/man/blockattack.man b/man/blockattack.man index 8d91530..1f734a7 100644 --- a/man/blockattack.man +++ b/man/blockattack.man
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
-.TH BLOCKATTACK "6" "September 2016" "blockattack 2.1.0-SNAPSHOT" "Games"
+.TH BLOCKATTACK "6" "October 2016" "blockattack 2.1.0-SNAPSHOT" "Games"
.SH NAME
-blockattack \- manual page for blockattack 2.1.0-SNAPSHOT
+blockattack \- a puzzle game inspired by Tetris Attack
.SH SYNOPSIS
.B blockattack
[\fI\,OPTION\/\fR]...
@@ -40,6 +40,9 @@ Prints the search path and quits
\fB\-\-allow\-resize\fR
Allow experimental windows resize support
.TP
+\fB\-\-no\-auto\-scale\fR
+Do not automatically auto scale
+.TP
\fB\-\-puzzle\-level\-file\fR arg
Sets the default puzzle file to load
.TP
diff --git a/source/code/main.cpp b/source/code/main.cpp index 4899bdb..ad19831 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1200,7 +1200,7 @@ static void ParseArguments(int argc, char* argv[], globalConfig& conf) {
("verbose-game-controller", "Enables verbose messages regarding controllers")
("print-search-path", "Prints the search path and quits")
("allow-resize", "Allow experimental windows resize support")
- ("no-auto-scale", "Do not automaticcally auto scale")
+ ("no-auto-scale", "Do not automatically auto scale")
("puzzle-level-file", boost::program_options::value<string>(), "Sets the default puzzle file to load")
("puzzle-single-level", boost::program_options::value<int>(), "Start the specific puzzle level directly")
("bind-text-domain", boost::program_options::value<string>(), SPrintStringF("Overwrites the bind text domain used for finding translations. "