IDLE?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ken

    IDLE?

    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\Tool s\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


Working...