Skip to content

Commit

Permalink
"-param" -> "--param".
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Apr 11, 2013
1 parent 6021602 commit 961a1ed
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,30 +199,30 @@ def main(options):
parser = argparse.ArgumentParser(description='Play a Python made Minecraft clone.')

display_group = parser.add_argument_group('Display options')
display_group.add_argument("-width", type=int, default=850, help = "Set the window width.")
display_group.add_argument("-height", type=int, default=480, help = "Set the window height.")
display_group.add_argument("--show-gui", action="store_true", default=True, help = "Enabled by default.")
display_group.add_argument("--hide-fog", action="store_true", default=False, help ="Hides the fog, see the whole landscape.")
display_group.add_argument("-draw-distance", choices=['short', 'medium', 'long'], default='short', help =" How far to draw the map. Choose short, medium or long.")
display_group.add_argument("-fullscreen", action="store_true", default=False, help = "Runs the game in fullscreen. Press 'Q' to exit the game.")
display_group.add_argument("--width", type=int, default=850, help="Set the window width.")
display_group.add_argument("--height", type=int, default=480, help="Set the window height.")
display_group.add_argument("--show-gui", action="store_true", default=True, help="Enabled by default.")
display_group.add_argument("--hide-fog", action="store_true", default=False, help="Hides the fog, see the whole landscape.")
display_group.add_argument("--draw-distance", choices=['short', 'medium', 'long'], default='short', help=" How far to draw the map. Choose short, medium or long.")
display_group.add_argument("--fullscreen", action="store_true", default=False, help="Runs the game in fullscreen. Press 'Q' to exit the game.")

game_group = parser.add_argument_group('Game options')
game_group.add_argument("-terrain", choices=terrain_options.keys(), help = "Different terains. Choose grass, island, mountains,desert, plains")
game_group.add_argument("-hillheight", type=int, help = "How high the hills are.")
game_group.add_argument("-worldsize", type=int, help = "The width size of the world.")
game_group.add_argument("-maxtrees", type=int, help = "How many trees and cacti should be made.")
game_group.add_argument("--flat", action="store_true", default=False, help = "Generate a flat world.")
game_group.add_argument("--fast", action="store_true", default=False, help = "Makes time progress faster then normal.")
game_group.add_argument("-gamemode", type=int, default=1, help = "Set the Gamemode for player. 0 = Creative, 1 = Survival")
game_group.add_argument("--terrain", choices=terrain_options.keys(), help="Different terrains. Choose grass, island, mountains,desert, plains")
game_group.add_argument("--hillheight", type=int, help="How high the hills are.")
game_group.add_argument("--worldsize", type=int, help="The width size of the world.")
game_group.add_argument("--maxtrees", type=int, help="How many trees and cacti should be made.")
game_group.add_argument("--flat", action="store_true", default=False, help="Generate a flat world.")
game_group.add_argument("--fast", action="store_true", default=False, help="Makes time progress faster then normal.")
game_group.add_argument("--gamemode", type=int, default=1, help="Set the Gamemode for player. 0 = Creative, 1 = Survival")

save_group = parser.add_argument_group('Save options')
save_group.add_argument("--disable-auto-save", action="store_false", default=True, help = "Do not save world on exit.")
save_group.add_argument("-save", type=unicode, default=SAVE_FILENAME, help = "Type a name for the world to be saved as.")
save_group.add_argument("--disable-save", action="store_false", default=True, help = "Disables saving.")
save_group.add_argument("--save-config", action="store_true", default=False, help = "Saves the choices as the default config.")
save_group.add_argument("-save-mode", type=int, default=2, help = "0 = Uncompressed Pickle, 1 = Compressed Pickle, 2 = Flatfile Struct (smallest, fastest)")
save_group.add_argument("--disable-auto-save", action="store_false", default=True, help="Do not save world on exit.")
save_group.add_argument("--save", type=unicode, default=SAVE_FILENAME, help="Type a name for the world to be saved as.")
save_group.add_argument("--disable-save", action="store_false", default=True, help="Disables saving.")
save_group.add_argument("--save-config", action="store_true", default=False, help="Saves the choices as the default config.")
save_group.add_argument("--save-mode", type=int, default=2, help="0 = Uncompressed Pickle, 1 = Compressed Pickle, 2 = Flatfile Struct (smallest, fastest)")

parser.add_argument("-seed", default=None)
parser.add_argument("--seed", default=None)
parser.add_argument("--motion-blur", action="store_true", default=False)
options = parser.parse_args()
main(options)

0 comments on commit 961a1ed

Please sign in to comment.