Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move option for the number of plates among generation options #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manual/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ General options
+------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------+
| -y N | --height=N | HEIGHT of the world to be generated |
+------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------+
| -q N | --number-of-plates=N | number of plates |
+------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------+
| | --recursion-limit=N | you need that just if you encounter an error while generating very large maps |
+------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------+
| -v | --verbose | Enable verbose messages |
Expand All @@ -44,6 +42,8 @@ Options valid only for generate
+-----------+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| Short | Long | Description |
+===========+============================+================================================================================================================================================+
| -q N | --number-of-plates=N | number of plates |
+-----------+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| -r FILE | --rivers=FILE | Produce a map of rivers, after the option it expects the name of the file where to generate the map |
+-----------+----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| --gs | --grayscale-heightmap | Produce a grayscale heightmap |
Expand Down
8 changes: 4 additions & 4 deletions worldengine/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ def main():
"[default=%(default)s]",
metavar="N",
default='512')
parser.add_argument('-q', '--number-of-plates', dest='number_of_plates',
type=int,
help="N = number of plates [default = %(default)s]",
metavar="N", default='10')
parser.add_argument('--recursion_limit', dest='recursion_limit', type=int,
help="Set the recursion limit [default = %(default)s]",
metavar="N", default='2000')
Expand All @@ -293,6 +289,10 @@ def main():
g_generate = parser.add_argument_group(
"Generate Options", "These options are only useful in plate and " +
"world modes")
g_generate.add_argument('-q', '--number-of-plates', dest='number_of_plates',
type=int,
help="N = number of plates [default = %(default)s]",
metavar="N", default='10')
g_generate.add_argument('-r', '--rivers', dest='rivers_map',
action="store_true", help="generate rivers map")
g_generate.add_argument('--gs', '--grayscale-heightmap',
Expand Down