Browse Source

moved optional argument down to group the mandatory objects on top

master
informaniac 7 years ago
parent
commit
67eaf2d05f
  1. 2
      generators/gameOfLife.py

2
generators/gameOfLife.py

@ -40,8 +40,8 @@ def get_neighbors(x, y):
if __name__ == "__main__": if __name__ == "__main__":
argument_parser = argparse.ArgumentParser(description="Game of Life bml generator") argument_parser = argparse.ArgumentParser(description="Game of Life bml generator")
argument_parser.add_argument('-w', dest="world", type=list, default=None, help="pre-constructed world (optional)")
argument_parser.add_argument('-o', dest="output_path", type=str, help="output file (mandatory)") argument_parser.add_argument('-o', dest="output_path", type=str, help="output file (mandatory)")
argument_parser.add_argument('-w', dest="world", type=list, default=None, help="pre-constructed world (optional)")
argument_parser.add_argument('-d', dest="delay", type=int, default=300, help="delay between frames (optional)") argument_parser.add_argument('-d', dest="delay", type=int, default=300, help="delay between frames (optional)")
args = argument_parser.parse_args() args = argument_parser.parse_args()

Loading…
Cancel
Save