This is the part of the standard library that you use to handle command-line arguments:
http://docs.python.org/library/argparse.html
The documentation is written so that you can pick it up even if you're new to Python. If you're too new to understand the documentation for that module, then spend an couple of hours going through the Python.org tutorial first, and then go back and read it again. Then you'll be ready to add the flags.
I assume you are, as you say, asking for
help (read: where to get information on how to do it yourself) and not for work to be done for you.
Quote:
Also, i would like the OK at the end of the script to be the first line that is return in the output instead of the last.
|
That's easy. Move it up in the script. Cut it out and paste it wherever you want it.
BTW, removing the indentation from Python code changes its meaning. This, as well as the use of [CODE] tags to preserve the indentation, has been
pointed out to you before. You were also handed a link to an excellent Python resource in that thread.
EDIT: Okay, which moron rated this unhelpful?