ArcMap Python Window for quick commands

Discussion created by kyanuk1 on Aug 31, 2012
Latest reply on Aug 31, 2012 by JScheirer-esristaff

I've been reading into how to use Python's optparse ( 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:

However, I don't believe this is used within ArcMap.

Any information would be much appreciated! :)