title: can you flag command line inputs in python?
body: <p>a lot of command-line .exe applications i use allow you flag optional inputs
  e.g. program.exe -o outputfile.txt -f F
  where "-o" indicates an optional output file name different to the default, and where "-F' indicates another option about the script. </p>
  
  <p>so far i've been using the sys.arg[] variables to input file names and such to my python scripts, but that has to be in a set order is it possible to have flagged inputs into python scripts?</p>
  
  <p>[this all comes about because i accidentally put input name and output name in the wrong order and over-wrote my input file]</p>