I would shy away from asking for user input and changing it to command line arguments.
It's fairly straightforward to do in Python using the following module: http://docs.python.org/2/library/argparse.html#module-argparse