I've been reading into how to use Python's optparse (http://docs.python.org/library/optparse.html) to write a few quick and simple "unix-style" commands (stringing some queries, writing some text files of attributes, etc), and I was wondering if anyone knows if ArcMap's Python Window can support this?
I know using python in Windows cmd, the user would be able to use an optparse script as 'python <script> -f output.txt', but I'm not sure whether this can be done with the Python Window ... I've seen optparse used with arcpy: