home · contact · privacy
Server: Add -n option to regenerate world.
[plomrogue] / server / utils.py
index c80c1d0288933b85f71c1aab915c73a16a6651d7..f7128916f37abbef0fb4136c9123c450fc233740 100644 (file)
@@ -98,6 +98,7 @@ def parse_command_line_arguments():
     """Return settings values read from command line arguments."""
     import argparse
     parser = argparse.ArgumentParser()
+    parser.add_argument('-n', dest='new', action='store_true')
     parser.add_argument('-s', nargs='?', type=int, dest='replay', const=1,
                         action='store')
     parser.add_argument('-l', nargs="?", const="save", dest='savefile',