briandconnelly / seeds

Stochastic Cellular Artificial Life Simulator
Other
20 stars 4 forks source link

move runseeds.py to argparse #12

Closed briandconnelly closed 10 years ago

briandconnelly commented 13 years ago

Optparse is depricated, so move to argparse.

briandconnelly commented 13 years ago

This requires Python 2.7 or greater, which are still kind of rare. Hold off on this a bit.

nahumj commented 13 years ago

I could write a conditional import of argparse, and use it if it is available. Unfortunately, this would complicate testing.

briandconnelly commented 13 years ago

Yeah, that and the fact that if someone were to add additional command-line arguments, they'd have to make sure they do both implementations.

Python 2.7 seems to becoming much more common (it's included in Lion and recent Ubuntu), so maybe the time to make the switch is soon.

briandconnelly commented 10 years ago

I'm no longer hesitant about requiring Python 2.7. This change has been made and pushed.