[EMAIL PROTECTED] wrote:

> howdy~
>
> i wrote a .py file and it works fine, my goal is to pass argument to
> that py file when it get executed, and accept that argument within py
> file, eg. i prefer a command like below:
>
> python test.py -t
>
> and then, i may get "-t" within test.py for later use.


sys.argv and getopt module:
http://diveintopython.org/scripts_and_streams/command_line_arguments.html

bye!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to