-h print help message with legal combinatios and exit
-i open shell window
-r file run file in shell window
-s run $IDLESTARTUP or $PYTHONSTARTUP first, in shell window
-t title set title of shell window
- run stdin in shell (- must be last option before args)
</pre></div>
</div>
<p>If there are arguments:</p>
<olclass="arabic simple">
<li>If <ttclass="docutils literal"><spanclass="pre">-e</span></tt> is used, arguments are files opened for editing and
<ulclass="simple">
<li>If <ttclass="docutils literal"><spanclass="pre">-</span></tt>, <ttclass="docutils literal"><spanclass="pre">-c</span></tt>, or <ttclass="docutils literal"><spanclass="pre">r</span></tt> is used, all arguments are placed in
<ttclass="docutils literal"><spanclass="pre">sys.argv[1:...]</span></tt> and <ttclass="docutils literal"><spanclass="pre">sys.argv[0]</span></tt> is set to <ttclass="docutils literal"><spanclass="pre">''</span></tt>, <ttclass="docutils literal"><spanclass="pre">'-c'</span></tt>,
or <ttclass="docutils literal"><spanclass="pre">'-r'</span></tt>. No editor window is opened, even if that is the default
set in the Options dialog.</li>
<li>Otherwise, arguments are files opened for editing and
<ttclass="docutils literal"><spanclass="pre">sys.argv</span></tt> reflects the arguments passed to IDLE itself.</li>
<li>Otherwise, if <ttclass="docutils literal"><spanclass="pre">-c</span></tt> is used, all arguments are placed in
<ttclass="docutils literal"><spanclass="pre">sys.argv[1:...]</span></tt>, with <ttclass="docutils literal"><spanclass="pre">sys.argv[0]</span></tt> set to <ttclass="docutils literal"><spanclass="pre">'-c'</span></tt>.</li>
<li>Otherwise, if neither <ttclass="docutils literal"><spanclass="pre">-e</span></tt> nor <ttclass="docutils literal"><spanclass="pre">-c</span></tt> is used, the first
argument is a script which is executed with the remaining arguments in
<ttclass="docutils literal"><spanclass="pre">sys.argv[1:...]</span></tt> and <ttclass="docutils literal"><spanclass="pre">sys.argv[0]</span></tt> set to the script name. If the
script name is ‘-‘, no script is executed but an interactive Python session
is started; the arguments are still available in <ttclass="docutils literal"><spanclass="pre">sys.argv</span></tt>.</li>