IDLE?

K

ken

I'm trying to find the correct method of launching IDLE (v 0.8) to debug a
script. When I run without a script name and then enable the debugger
option and then load and run the script I have no problems. However, I need
to be able to add command line options (-h or --help). I can run the script
with command line options (without the preceding IDLE) just fine but when I
attempt to run "\Python22\Tools\IDLE\idle -d test.py -h" I get a syntax
error on the call to Main()

if __name__ == '__main__':
main()


File "test.py", line 367
main()
^
SyntaxError: invalid syntax

What am I doing wrong?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top